xtd 0.2.0
Loading...
Searching...
No Matches
address_family.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../enum.hpp"
6
8#undef unix
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
30 enum class address_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::address_family> {{xtd::net::sockets::address_family::unknown, "unknown"}, {xtd::net::sockets::address_family::unspecified, "unspecified"}, {xtd::net::sockets::address_family::unix, "unix"}, {xtd::net::sockets::address_family::inter_network, "inter_network"}, {xtd::net::sockets::address_family::imp_link, "imp_link"}, {xtd::net::sockets::address_family::pup, "pup"}, {xtd::net::sockets::address_family::chaos, "chaos"}, /*{xtd::net::sockets::address_family::ns, "ns"},*/ {xtd::net::sockets::address_family::ipx, "ipx"}, {xtd::net::sockets::address_family::iso, "iso"}, /*{xtd::net::sockets::address_family::osi, "osi"},*/ {xtd::net::sockets::address_family::ecma, "ecma"}, {xtd::net::sockets::address_family::data_kit, "data_kit"}, {xtd::net::sockets::address_family::ccitt, "ccitt"}, {xtd::net::sockets::address_family::sna, "sna"}, {xtd::net::sockets::address_family::dec_net, "dec_net"}, {xtd::net::sockets::address_family::data_link, "data_link"}, {xtd::net::sockets::address_family::lat, "lat"}, {xtd::net::sockets::address_family::hyper_channel, "hyper_channel"}, {xtd::net::sockets::address_family::apple_talk, "apple_talk"}, {xtd::net::sockets::address_family::net_bios, "net_bios"}, {xtd::net::sockets::address_family::voice_view, "voice_view"}, {xtd::net::sockets::address_family::fire_fox, "fire_fox"}, {xtd::net::sockets::address_family::banyan, "banyan"}, {xtd::net::sockets::address_family::atm, "atm"}, {xtd::net::sockets::address_family::inter_network_v6, "inter_network_v6"}, {xtd::net::sockets::address_family::cluster, "cluster"}, {xtd::net::sockets::address_family::ieee12844, "ieee12844"}, {xtd::net::sockets::address_family::irda, "irda"}, {xtd::net::sockets::address_family::network_designers, "network_designers"}, {xtd::net::sockets::address_family::max, "max"}};}
101};
address_family
Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.
Definition address_family.hpp: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.hpp:22
@ 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.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38