5#include "../../enum.hpp" 
   52  explicit operator auto() 
const noexcept {
return xtd::enum_collection<xtd::net::sockets::socket_type> {{
xtd::net::sockets::socket_type::unknown, 
"unknown"}, {
xtd::net::sockets::socket_type::stream, 
"stream"}, {
xtd::net::sockets::socket_type::dgram, 
"dgram"}, {
xtd::net::sockets::socket_type::raw, 
"raw"}, {
xtd::net::sockets::socket_type::rdm, 
"rdm"}, {
xtd::net::sockets::socket_type::seqpacket, 
"seqpacket"}};}
 
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:22
 
socket_type
Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents.
Definition socket_type.hpp:32
 
@ unknown
Unknown address family.
 
@ raw
Raw IP packet protocol.
 
@ rdm
Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundar...
 
@ unknown
Specifies an unknown xtd::net::sockets::socket type.
 
@ seqpacket
Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network....
 
@ raw
Supports access to the underlying transport protocol. Using the xtd::net::sockets::socket_type::raw,...
 
@ stream
Supports reliable, two-way, connection-based byte streams without the duplication of data and without...
 
@ dgram
Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximu...
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
Provides the registration struct for enumerations.
Definition enum_register.hpp:38