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 {
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
51};
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
socket_type
Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents.
Definition socket_type.h:30
@ 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:36