xtd 0.2.0
socket_type.h
Go to the documentation of this file.
1 #pragma once
5 #include "../../enum.h"
6 
8 #undef unix
9 
12 namespace xtd {
14  namespace net {
16  namespace sockets {
30  enum class socket_type {
32  unknown = -1,
34  stream = 1,
36  dgram = 2,
38  raw = 3,
40  rdm = 4,
42  seqpacket = 5,
43  };
44  }
45  }
46 }
47 
49 template<> struct xtd::enum_register<xtd::net::sockets::socket_type> {
51 };
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