Ends a pending asynchronous read.
- Parameters
-
async_result | An xtd::iasync_result that stores state information for this asynchronous operation as well as any user defined data. |
- Returns
- The number of bytes received.
- Exceptions
-
- Note
- If you receive a xtd::net::sockets::socket_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.
-
All I/O initiated by a given thread is canceled when that thread exits. A pending asynchronous operation can fail if the thread exits before the operation completes.