5 #include "../../enum.h" 50 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"}};}
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network...
Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundar...
Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximu...
socket_type
Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents...
Definition: socket_type.h:30
Supports reliable, two-way, connection-based byte streams without the duplication of data and without...
Provides the registration struct for enumerations.
Definition: enum_register.h:36