Begins to asynchronously receive the specified number of bytes of data into the specified location of the data buffer, using the specified xtd::net::sockets::socket_flags, and stores the endpoint and packet information.
- Parameters
-
buffer | An array of type xtd::byte that is the storage location for the received data. |
offset | The zero-based position in the buffer parameter at which to store the data. |
size | The number of bytes to receive. |
socket_flags | A bitwise combination of the xtd::net::sockets::socket_flags values. |
remote_end_point | An xtd::net::end_point that represents the source of the data. |
callback | The xtd::async_callback delegate. |
state | An object that contains state information for this request. |
- Returns
- An xtd::iasync_result that references the asynchronous connection.
- Exceptions
-
- Note
- 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.