关于这个问题的更多讨论,请参阅我的文章《空标志错误模式》。
For more discussion on this issue, see my article "The Null Flag Bug Pattern".
关于这个问题的更多讨论,请参阅我的文章空标志错误模式。
For more discussion on this issue, see my article The Null Flag bug pattern.
返回一个标志值将引起许多与我们上次讨论的空标志错误模式一样的错误。
Returning a flag value would have many of the same problems as the Null Flag bug pattern we discussed last time.
函数的错误状态被捕获并测试,但这个例子忽略了send在无阻塞模式(由msg_dontwait标志启用)下的一个特性。
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标志启用)下的一个特性。
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).
应用推荐