xtd 0.2.0
Loading...
Searching...
No Matches
protocol_family.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../enum.h"
6
8#undef unix
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
30 enum class protocol_family {
32 unknown = -1,
34 unspecified = 0,
36 unix = 1,
38 inter_network = 2,
40 imp_link = 3,
42 pup = 4,
44 chaos = 5,
46 ns = 6,
48 ipx = 6,
50 iso = 7,
52 osi = 7,
54 ecma = 8,
56 data_kit = 9,
58 ccitt = 10,
60 sna = 11,
62 dec_net = 12,
64 data_link = 13,
66 lat = 14,
68 hyper_channel = 15,
70 apple_talk = 16,
72 net_bios = 17,
74 voice_view = 18,
76 fire_fox = 19,
78 banyan = 21,
80 atm = 22,
84 cluster = 24,
86 ieee12844 = 25,
88 irda = 26,
92 max = 29,
93 };
94 }
95 }
96}
97
100 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::net::sockets::protocol_family> {{xtd::net::sockets::protocol_family::unknown, "unknown"}, {xtd::net::sockets::protocol_family::unspecified, "unspecified"}, {xtd::net::sockets::protocol_family::unix, "unix"}, {xtd::net::sockets::protocol_family::inter_network, "inter_network"}, {xtd::net::sockets::protocol_family::imp_link, "imp_link"}, {xtd::net::sockets::protocol_family::pup, "pup"}, {xtd::net::sockets::protocol_family::chaos, "chaos"}, {xtd::net::sockets::protocol_family::ipx, "ipx"}, {xtd::net::sockets::protocol_family::iso, "iso"}, {xtd::net::sockets::protocol_family::ecma, "ecma"}, {xtd::net::sockets::protocol_family::data_kit, "data_kit"}, {xtd::net::sockets::protocol_family::ccitt, "ccitt"}, {xtd::net::sockets::protocol_family::sna, "sna"}, {xtd::net::sockets::protocol_family::dec_net, "dec_net"}, {xtd::net::sockets::protocol_family::data_link, "data_link"}, {xtd::net::sockets::protocol_family::lat, "lat"}, {xtd::net::sockets::protocol_family::hyper_channel, "hyper_channel"}, {xtd::net::sockets::protocol_family::apple_talk, "apple_talk"}, {xtd::net::sockets::protocol_family::net_bios, "net_bios"}, {xtd::net::sockets::protocol_family::voice_view, "voice_view"}, {xtd::net::sockets::protocol_family::fire_fox, "fire_fox"}, {xtd::net::sockets::protocol_family::banyan, "banyan"}, {xtd::net::sockets::protocol_family::atm, "atm"}, {xtd::net::sockets::protocol_family::inter_network_v6, "inter_network_v6"}, {xtd::net::sockets::protocol_family::cluster, "cluster"}, {xtd::net::sockets::protocol_family::ieee12844, "ieee12844"}, {xtd::net::sockets::protocol_family::irda, "irda"}, {xtd::net::sockets::protocol_family::network_designers, "network_designers"}, {xtd::net::sockets::protocol_family::max, "max"}};}
101};
protocol_family
Specifies the type of protocol that an instance of the xtd::net::sockets::socket class can use.
Definition protocol_family.h:30
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.h:22
@ cluster
Microsoft cluster products protocol.
@ ieee12844
IEEE 1284.4 workgroup protocol.
@ inter_network
IP version 4 protocol.
@ network_designers
Network Designers OSI gateway-enabled protocol.
@ unix
Unix local to host protocol.
@ data_link
Direct data-link interface protocol.
@ atm
Native ATM services protocol.
@ voice_view
VoiceView protocol.
@ apple_talk
AppleTalk protocol.
@ ccitt
CCITT protocols, such as X.25.
@ hyper_channel
NSC Hyperchannel protocol.
@ inter_network_v6
IP version 6 protocol.
@ imp_link
ARPANET IMP protocol.
@ ecma
European Computer Manufacturers Association (ECMA) protocol.
@ unspecified
Unspecified protocol.
@ cluster
Address for Microsoft cluster products.
@ ieee12844
IEEE 1284.4 workgroup address.
@ inter_network
Address for IP version 4.
@ network_designers
Address for Network Designers OSI gateway-enabled protocols.
@ unix
Unix local to host address.
@ data_link
Direct data-link interface address.
@ pup
Address for PUP protocols.
@ atm
Native ATM services address.
@ osi
Address for OSI protocols.
@ voice_view
VoiceView address.
@ apple_talk
AppleTalk address.
@ ccitt
Addresses for CCITT protocols, such as X.25.
@ hyper_channel
NSC Hyperchannel address.
@ inter_network_v6
Address for IP version 6.
@ data_kit
Address for Datakit protocols.
@ imp_link
ARPANET IMP address.
@ unknown
Unknown address family.
@ ecma
European Computer Manufacturers Association (ECMA) address.
@ unspecified
Unspecified address family.
@ iso
Address for ISO protocols.
@ chaos
Address for MIT CHAOS protocols.
@ ns
Address for Xerox NS protocols.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38