size_t xtd::net::sockets::socket::send_to | ( | const std::vector< xtd::byte > & | buffer, |
size_t | size, | ||
xtd::net::sockets::socket_flags | socket_flags, | ||
const xtd::net::end_point & | remote_end_point | ||
) |
Sends the specified number of bytes of data to the specified endpoint using the specified xtd::net::sockets::socket_flags.
buffer | An array of type byte that contains the data to be sent. |
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. |
xtd::argument_out_of_range_exception | size is less than 0 or exceeds the size of the buffer. |
xtd::net::sockets::socket_exception | An error occurred when attempting to access the socket. |
xtd::object_closed_exception | The xtd::net::sockets::socket has been closed. |