void xtd::net::sockets::udp_client::connect | ( | const xtd::string & | hostname, |
uint16 | port | ||
) |
Establishes a default remote host using the specified hostname and port number.
hostname | the hostname to connect to. |
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. |