xtd::net::sockets::udp_client::sends a datagram to a destination asynchronously. The destination is specified by a EndPoint.
- Parameters
-
dgram | A byte array that contains the data to be sent. |
bytes | The number of bytes to send. |
end_point | The EndPoint that represents the destination for the data. |
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.