xtd 0.2.0
Loading...
Searching...
No Matches

◆ client() [2/2]

udp_client & xtd::net::sockets::udp_client::client ( const xtd::net::sockets::socket value)
noexcept

Sets the underlying network xtd::net::sockets::socket.

Parameters
valueThe underlying Network xtd::net::sockets::socket.
Returns
This current instance.
Remarks
xtd::net::sockets::udp_client creates a xtd::net::sockets::socket used to send and receive data over a network. Classes deriving from xtd::net::sockets::udp_client can use this property to get or set this xtd::net::sockets::socket. Use the underlying xtd::net::sockets::socket returned from xtd::net::sockets::udp_client::client if you require access beyond that which xtd::net::sockets::udp_client provides. You can also use xtd::net::sockets::udp_client::client to set the underlying xtd::net::sockets::socket to an existing xtd::net::sockets::socket. This is useful if you want to take advantage of the simplicity of xtd::net::sockets::udp_client using a pre-existing xtd::net::sockets::socket.