Ends a pending asynchronous receive.
- Parameters
-
async_result | An xtd::iasync_result object returned by a call to xtd::net::sockets::udp_client::begin_receive(xtd::async_callback, Object). |
remote_end_point | The specified remote endpoint. |
- Returns
- If successful, an array of bytes that contains datagram data.
- 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.