shutdown SD_SEND后recv的问题
发送方, 数据发送完毕后, 执行了 shutdown(s, SD_SEND);
为何 接收方 的recv还被阻塞着, 不返回0么?
那这 shutdown(s, SD_SEND); 起啥作用了
为何 接收方 的recv还被阻塞着, 不返回0么?
那这 shutdown(s, SD_SEND); 起啥作用了
作者: u3nnn 发布时间: 2011-06-16
The shutdown function is used on all types of sockets to disable reception, transmission, or both.
If the how parameter is SD_SEND, subsequent calls to the send function are disallowed. For TCP sockets, a FIN will be sent after all data is sent and acknowledged by the receiver.
shutdown不是closesocket
If the how parameter is SD_SEND, subsequent calls to the send function are disallowed. For TCP sockets, a FIN will be sent after all data is sent and acknowledged by the receiver.
shutdown不是closesocket
作者: ouyh12345 发布时间: 2011-06-16
表示不再发送数据了
作者: VisualEleven 发布时间: 2011-06-16