socket option(sokcet选项设置)
MSDN上的原话:如下
----------------------------------------------------
SO_RCVBUF and SO_SNDBUF
When a Windows Sockets implementation supports the SO_RCVBUF and SO_SNDBUF options, an application can request different buffer sizes (larger or smaller). The call to setsockopt can succeed even when the implementation did not provide the whole amount requested. An application must call getsockopt with the same option to check the buffer size actually provided.
----------------------------------------------------
我有一个问题:
如果这里设置了 SO_SNDBUF 选项为 512 ,那么实际上 发送缓存的值还是由系统决定吗(有可能不是512)??
那还要这个选项有什么用??