Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
All of the stream operations at higher levels thus far have operated on a complete header or message. At this level it is possible to send and receive messages incrementally. This allows resource constrained implementations to perform work bounded on storage, or allows better control when setting timeouts for example. These functions read or write bounded amounts of data and return the number of bytes transacted:到目前为止,所有较高层次的流操作都针对完整的消息头部或完整消息进行。而在此层次,则可以实现消息的增量式发送与接收。这对资源受限的实现特别有用,可以在有限的存储空间内完成任务,或在设置超时等场景下提供更精细的控制。以下函数用于读取或写入限定量的数据,并返回实际传输的字节数:[link beast.ref.boost__beast__http__read_some.overload2 `read_some`],、[link beast.ref.boost__beast__http__write_some.overload2 `write_some`],、[link beast.ref.boost__beast__http__async_read_some `async_read_some`], and以及 [link beast.ref.boost__beast__http__async_write_some `async_write_some`].。