Sends data to the specified endpoint.
- Parameters
-
buffer | An array of type byte that contains the data to be sent. |
remote_end_point | The xtd::net::end_point that represents the destination for the data. |
- Returns
- The number of bytes sent.
- 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.