xtd::net::sockets::udp_client::sends a datagram to a remote host asynchronously. The destination was specified previously by a call to xtd::net::sockets::udp_client::connect.
- Parameters
-
dgram | A byte array that contains the data to be sent. |
bytes | The number of bytes to send. |
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 send operation. This object is passed to the callback delegate when the operation is complete. |
- Returns
- An xtd::iasync_result object that references the asynchronous send.