size_t xtd::net::sockets::socket::receive_from | ( | std::vector< xtd::byte > & | buffer, |
size_t | offset, | ||
size_t | size, | ||
xtd::net::sockets::socket_flags | socket_flags, | ||
xtd::net::end_point & | remote_end_point | ||
) |
Receives data from a bound xtd::net::sockets::socket into a receive buffer.
buffer | An array of type byte that is the storage location for the received data. |
offset | The position in the buffer parameter to store the received data. |
size | The number of bytes to receive. |
socket_flags | A bitwise combination of the xtd::net::sockets::socket_flags values. |
remote_end_point | the remote host |
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. |