我们知道客户端会在发出连接请求后立刻传送数据,所以如果我们准备好接收缓冲区会使事情变得更为容易。
Since you know the client will connect and immediately send data, supplying a receive buffer can make things substantially easier.
提供者使用这个访问者来决定如何向或从消费者缓冲区中传送数据。
The provider USES the accessor to determine how to transfer the data to or from the consumer's buffer.
在这种情况下,也许他们有一个共同的文本缓冲区直接写入和缓冲区已满时,它可以通过网络传送。
In that case maybe they share a common text buffer and just directly write to it and when the buffer is full it can be sent across the network.
应用推荐