xtd 0.2.0
Loading...
Searching...
No Matches
socket_type.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 {
32 enum class socket_type {
34 unknown = -1,
36 stream = 1,
38 dgram = 2,
40 raw = 3,
42 rdm = 4,
44 seqpacket = 5,
45 };
46 }
47 }
48}
49
53};
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
socket_type
Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents.
Definition socket_type.h:32
@ unknown
Unknown address family.
@ raw
Raw IP packet protocol.
@ rdm
Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundar...
@ unknown
Specifies an unknown xtd::net::sockets::socket type.
@ seqpacket
Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network....
@ raw
Supports access to the underlying transport protocol. Using the xtd::net::sockets::socket_type::raw,...
@ stream
Supports reliable, two-way, connection-based byte streams without the duplication of data and without...
@ dgram
Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximu...
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