阅读背景:

可以在连接的套接字上读取()函数返回零字节吗?

来源:互联网 

I know that read() is a blocking call unless I make the socket non-blocking. So I expect read() call which requests 4K of data should return a positive value ( no of bytes read) or -1 on error ( possible connection reset by client etc). My question is: Can read() return '0' on any occasion? I know that read() is a blocking call unless I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: