xtd::sptr< xtd::iasync_result > xtd::net::sockets::udp_client::begin_receive | ( | xtd::async_callback | callback, |
const std::any & | state | ||
) |
xtd::net::sockets::udp_client::receives a datagram from a remote host asynchronously.
callback | An xtd::async_callback delegate that references the method to invoke when the operation is complete. |
state | A user-defined object that contains information about the receive operation. This object is passed to the callback delegate when the operation is complete. |