88 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::net::sockets::protocol_type> {{
xtd::net::sockets::protocol_type::unknown,
"unknown"}, {
xtd::net::sockets::protocol_type::ip,
"ip"}, {
xtd::net::sockets::protocol_type::icmp,
"icmp"}, {
xtd::net::sockets::protocol_type::igmp,
"igmp"}, {
xtd::net::sockets::protocol_type::ggp,
"ggp"}, {
xtd::net::sockets::protocol_type::ip_v4,
"ip_v4"}, {
xtd::net::sockets::protocol_type::tcp,
"tcp"}, {
xtd::net::sockets::protocol_type::pup,
"pup"}, {
xtd::net::sockets::protocol_type::udp,
"udp"}, {
xtd::net::sockets::protocol_type::idp,
"idp"}, {
xtd::net::sockets::protocol_type::ip_v6,
"ip_v6"}, {
xtd::net::sockets::protocol_type::ip_v6_routing_header,
"ip_v6_routing_header"}, {
xtd::net::sockets::protocol_type::ip_v6_fragment_header,
"ip_v6_fragment_header"}, {
xtd::net::sockets::protocol_type::ip_sec_encapsulating_security_payload,
"ip_sec_encapsulating_security_payload"}, {
xtd::net::sockets::protocol_type::ip_sec_authentication_header,
"ip_sec_authentication_header"}, {
xtd::net::sockets::protocol_type::icmp_v6,
"icmp_v6"}, {
xtd::net::sockets::protocol_type::ip_v6_no_next_header,
"ip_v6_no_next_header"}, {
xtd::net::sockets::protocol_type::ip_v6_destination_options,
"ip_v6_destination_options"}, {
xtd::net::sockets::protocol_type::nd,
"nd"}, {
xtd::net::sockets::protocol_type::raw,
"raw"}, {
xtd::net::sockets::protocol_type::ipx,
"ipx"}, {
xtd::net::sockets::protocol_type::spx,
"spx"}, {
xtd::net::sockets::protocol_type::spx_2,
"spx_2"}};}
Contains enum_ and enum_ut_ keywords.
std::vector< std::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:24
protocol_type
Specifies the protocols that the xtd::net::sockets::socket class supports.
Definition protocol_type.hpp:30
@ ipx
IPX or SPX address.
Definition address_family.hpp:48
@ pup
Address for PUP protocols.
Definition address_family.hpp:42
@ unknown
Unknown address family.
Definition address_family.hpp:32
@ unspecified
Unspecified address family.
Definition address_family.hpp:34
@ icmp
Internet Control Message Protocol.
Definition protocol_type.hpp:40
@ ip_sec_encapsulating_security_payload
IPv6 Encapsulating Security Payload header.
Definition protocol_type.hpp:62
@ ip_v6
Internet Protocol version 6 (IPv6).
Definition protocol_type.hpp:56
@ ip_v6_routing_header
IPv6 Routing header.
Definition protocol_type.hpp:58
@ ipx
Internet Packet Exchange Protocol.
Definition protocol_type.hpp:76
@ ip_v6_fragment_header
IPv6 Fragment header.
Definition protocol_type.hpp:60
@ icmp_v6
Internet Control Message Protocol for IPv6.
Definition protocol_type.hpp:66
@ pup
PARC Universal Packet Protocol.
Definition protocol_type.hpp:50
@ idp
Internet Datagram Protocol.
Definition protocol_type.hpp:54
@ spx
Sequenced Packet Exchange protocol.
Definition protocol_type.hpp:78
@ ip_v4
Internet Protocol version 4.
Definition protocol_type.hpp:46
@ udp
User Datagram Protocol.
Definition protocol_type.hpp:52
@ ip_v6_hop_by_hop_options
IPv6 Hop by Hop Options header.
Definition protocol_type.hpp:34
@ ggp
Gateway To Gateway Protocol.
Definition protocol_type.hpp:44
@ ip
Internet Protocol.
Definition protocol_type.hpp:38
@ spx_2
Sequenced Packet Exchange version 2 protocol.
Definition protocol_type.hpp:80
@ nd
Net Disk Protocol (unofficial).
Definition protocol_type.hpp:72
@ unknown
Specifies an unknown protocol.
Definition protocol_type.hpp:32
@ ip_v6_destination_options
IPv6 Destination Options header.
Definition protocol_type.hpp:70
@ igmp
Internet Group Management Protocol.
Definition protocol_type.hpp:42
@ raw
Raw IP packet protocol.
Definition protocol_type.hpp:74
@ tcp
Transmission Control Protocol.
Definition protocol_type.hpp:48
@ ip_sec_authentication_header
IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at http://www....
Definition protocol_type.hpp:64
@ ip_v6_no_next_header
IPv6 No next header.
Definition protocol_type.hpp:68
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition address_family.hpp:16
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Provides the registration struct for enumerations.
Definition enum_register.hpp:38