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

◆ client() [1/2]

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

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

Returns
The underlying Network xtd::net::sockets::socket.
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::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.