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标志启用)下的一个特性。
To add more robust error handling -- with minimal complication -- you might add a check or two for other status codes; check out the modified version of updatePage() in Listing 15.
为了增加更健壮的错误处理并尽量避免过于复杂,可以增加一两个状态码检查,请看一看 清单 15 中修改后的 updatePage() 版本。
If the agent encounters an error, it stores an error message in the Status text field of the parameter document.
如果代理遇到错误,它将在参数文档的Status文本字段中存储一条错误消息。
应用推荐