size_t xtd::net::sockets::socket::receive | ( | std::vector< xtd::byte > & | buffer | ) |
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. |
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. |