Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Synchronous input and output is accomplished through blocking function calls that return with the result of the operation. Such operations typically cannot be canceled and do not have a method for setting a timeout. The同步输入与输出通过阻塞函数调用实现,这些调用在操作完成后将返回结果。此类操作通常无法取消,也没有设置超时的方法。__SyncReadStream__and与 __SyncWriteStream__concepts define requirements for ['synchronous streams]: a portable I/O abstraction that transfers data using buffer sequences to represent bytes and either `error_code` or an exception to report any failures.概念用于定义 [同步流] 的要求:这是一种可移植的 I/O 抽象,使用缓冲区序列来传输字节数据,并通过 `error_code` 或异常来报告错误。[@boost:/doc/html/boost_asio/reference/basic_stream_socket.html['`net::basic_stream_socket]] is a synchronous stream commonly used to form TCP/IP connections. User-defined types which meet the requirements are possible:`] 是一种常用的同步流,用于建立 TCP/IP 连接。用户也可以定义满足这些要求的自定义类型。