tcp和udp能否发送0字节的数据包
1、tcp和udp都能发送0字节的数据包,windows下通过GetLastError查看返回值为0
2、tcp发送0字节的数据包后,接收方调用recv不会接收到该数据包
3、udp发送0字节的数据包后,接收方调用recvfrom能够接收到该数据包
转自:http://blog.csdn.net/wzx19840423/article/details/6643094
欢迎访问:wenhao.ink
1、tcp和udp都能发送0字节的数据包,windows下通过GetLastError查看返回值为0
2、tcp发送0字节的数据包后,接收方调用recv不会接收到该数据包
3、udp发送0字节的数据包后,接收方调用recvfrom能够接收到该数据包
转自:http://blog.csdn.net/wzx19840423/article/details/6643094