xtd 0.2.0

◆ active() [2/2]

udp_client & xtd::net::sockets::udp_client::active ( bool  value)
protectednoexcept

Sets a value that indicates whether a connection has been made.

Parameters
valuebool true if the connection has been made; otherwise, false.
Returns
This current instance.
Remarks
Classes deriving from xtd::net::sockets::udp_client can use this property to determine if a default remote host has been established. You can establish a default remote host by using the appropriate constructor or by calling the xtd::net::sockets::udp_client::connect method. If you do establish a default remote host, you cannot specify a remote host in your call to xtd::net::sockets::udp_client::send.