书栈网 · BookStack 本次搜索耗时 0.027 秒,为您找到 108 个相关结果.
  • 7.4. 网络编程

    1742 2019-12-10 《Boost C++ 库》
    7.4. 网络编程 7.4. 网络编程 虽然 Boost.Asio 是一个可以异步处理任何种类数据的库,但是它主要被用于网络编程。 这是由于,事实上 Boost.Asio 在加入其它 I/O 对象之前很久就已经支持网络功能了。 网络功能是异步处理的一个很好的例子,因为通过网络进行数据传输可能会需要较长时间,从而不能直接获得确认或错误条件。 Boos...
  • Synchronous read/write operations

    Synchronous read/write operations Synchronous read/write operations Once the connection is established, the client and server can communicate with each other. Like classical UN...
  • UDP communication

    UDP communication UDP communication We have discussed how to communicate through TCP enough, so it is time to switch to UDP now. UDP is a connectionless protocol, and it is ...
  • Asynchronous read/write operations

    Asynchronous read/write operations Asynchronous read/write operations Unlike classical UNIX socket programming, boost.asio has battery-included asynchronous read/write abilit...
  • Index

    Index Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Index Symbols _, xpressive, Boost.Xpressive _1, Boost.Bind, Boost.Bind _1, lam...
  • Endpoint

    Endpoint Endpoint Endpoint is composed of “IP address + port”: basic_endpoint ( const boost :: asio :: ip :: address & addr , unsigned short port_num ) : imp...
  • Socket

    Socket Socket There are 4 types of socket: (1) basic_stream_socket :This socket provides sequenced, reliable, two-way connection based byte streams. tcp::socket is an instan...
  • Throw exception

    Throw exception Throw exception Boost.Asio functions may throw boost::system::system_error exception. Take resolve as an example: results_type resolve ( BOOST_ASIO_STRING...
  • 7.2. I/O 服务与 I/O 对象

    1744 2019-12-10 《Boost C++ 库》
    7.2. I/O 服务与 I/O 对象 7.2. I/O 服务与 I/O 对象 使用 Boost.Asio 进行异步数据处理的应用程序基于两个概念:I/O 服务和 I/O 对象。 I/O 服务抽象了操作系统的接口,允许第一时间进行异步数据处理,而 I/O 对象则用于初始化特定的操作。 鉴于 Boost.Asio 只提供了一个名为 boost::asi...
  • 15.2. Boost.System

    1850 2019-12-10 《Boost C++ 库》
    15.2. Boost.System 15.2. Boost.System Boost.System 是一个定义了四个类的小型库,用以识别错误。 boost::system::error_code 是一个最基本的类,用于代表某个特定操作系统的异常。 由于操作系统通常枚举异常,boost::system::error_code 中以变量的形式保存...