Sends the specified number of bytes of data to the specified endpoint, starting at the specified location in the buffer, and using the specified xtd::net::sockets::socket_flags.
- Parameters
-
buffer | An array of type byte that contains the data to be sent. |
offset | The position in the data buffer at which to begin sending data. |
size | The number of bytes to send. |
socket_flags | A bitwise combination of the xtd::net::sockets::socket_flags values. |
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.