Sends the specified number of bytes of data to a connected xtd::net::sockets::socket, starting at the specified offset, 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. |
error_code | A xtd::net::sockets::socket_error object that stores the socket error. |
- Returns
- The number of bytes sent to the xtd::net::sockets::socket.
- Exceptions
-
- Note
- The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.