[英]boost asio async_receive buffer size
Is there an optimal size for the buffer I pass to async_receive
or async_receive_from
for tcp and udp respectively? 是否分别为tcp和udp传递给
async_receive
或async_receive_from
的缓冲区有最佳大小? I was thinking it might be 8192 for tcp and 1472 for udp. 我以为tcp可能是8192,udp可能是1472。
AFAIK,不,您需要了解应用程序的吞吐量要求并进行适当设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.