error blocking proof circuit 防误闭锁回路
On a blocking connection, a return of 0 means that the connection was closed, while -1 indicates that an error occurred.
在受阻塞的连接中,该函数返回 0,表示连接已经关闭,而 -1 则表示连接出现错误。
On a non-blocking connection, a return of 0 means no data was available, and -1 indicates an error.
在非阻塞连接的情况下,返回 0 表示没有可以获得的数据,返回 -1 表示连接出错。
The error status of the function is captured and tested, but this example ignores a feature of send in non-blocking mode (enabled by the MSG_DONTWAIT flag).
函数的错误状态被捕获并测试,但这个例子忽略了send在无阻塞模式(由msg_dontwait标志启用)下的一个特性。
应用推荐