Determines the status of one or more sockets.
- Parameters
-
- Returns
- 0 if the timeout expired; otherwise, the total number of sockets returned in the lists.
- Exceptions
-
- Note
- This method cannot detect certain kinds of connection problems, such as a broken network cable, or that the remote host was shut down ungracefully. You must attempt to send or receive data to detect these kinds of errors.
-
If you receive a xtd::net::sockets::socket_exception exception, use the xtd::net::sockets::socket_exception::error_code property to obtain the specific error code. After you have obtained this code, refer to the Windows Sockets version 2 API error code documentation in the MSDN library for a detailed description of the error.