void xtd::net::sockets::udp_client::connect | ( | const xtd::net::ip_address & | ip_address, |
uint16 | port | ||
) |
Establishes a default remote host using the specified IP address and port number.
ip_address | The xtd::net::ip_address of the remote host to which you intend to send data |
port | The port number to which you intend send data |
xtd::net::sockets::socket_exception | An error occurred when attempting to access the underlying socket. |
xtd::object_closed_exception | The underlying xtd::net::sockets::socket has been closed. |