请教高手Send返回值问题!!
TCP通信中,我使用 EventSelect 来处理数据发送与接收。
接收数据响应:FD_READ
发送数据响应:FD_WRITE (主要针对WSAEWOULDBLOCK)
问高手一个问题,send 函数, MSDN上说,如果发送成功,有可能返回小于“发送缓存大小”的值。我想问,我做了很多实验和跟踪,为什么我从来没有遇到这种情况?
If no error occurs, send returns the total number of bytes sent, which can be less than the number requested to be sent in the len parameter. Otherwise, a value of SOCKET_ERROR is returned。
哪位高手遇到过“can be less than the number ....”的情况么?