xtd 0.2.0
Loading...
Searching...
No Matches
socket_option_name_constants.h
Go to the documentation of this file.
1
5#pragma once
7#if !defined(__XTD_CORE_NATIVE_LIBRARY__)
8#error "Do not include this file: Internal use only"
9#endif
11
12#include <cstdint>
13
20constexpr int32_t SOCKET_OPTION_NAME_DEBUG = 1;
21
29
37
44constexpr int32_t SOCKET_OPTION_NAME_KEEP_ALIVE = 8;
45
52constexpr int32_t SOCKET_OPTION_NAME_DONT_ROUTE = 16;
53
60constexpr int32_t SOCKET_OPTION_NAME_BROADCAST = 32;
61
68constexpr int32_t SOCKET_OPTION_NAME_USE_LOOPBACK = 64;
69
76constexpr int32_t SOCKET_OPTION_NAME_LINGER = 128;
77
85
92constexpr int32_t SOCKET_OPTION_NAME_DONT_LINGER = -129;
93
101
108constexpr int32_t SOCKET_OPTION_NAME_SEND_BUFFER = 4097;
109
116constexpr int32_t SOCKET_OPTION_NAME_RECEIVE_BUFFER = 4098;
117
124constexpr int32_t SOCKET_OPTION_NAME_SEND_LOW_WATER = 4099;
125
133
140constexpr int32_t SOCKET_OPTION_NAME_SEND_TIMEOUT = 4101;
141
148constexpr int32_t SOCKET_OPTION_NAME_RECEIVE_TIMEOUT = 4102;
149
156constexpr int32_t SOCKET_OPTION_NAME_ERROR = 4103;
157
164constexpr int32_t SOCKET_OPTION_NAME_TYPE = 4104;
165
172constexpr int32_t SOCKET_OPTION_NAME_MAX_CONNECTION = 2147483647;
173
180constexpr int32_t SOCKET_OPTION_NAME_IP_OPTIONS = 1;
181
189
197
205
213
221
229
237
245
252constexpr int32_t SOCKET_OPTION_NAME_DONT_FRAGMENT = 14;
253
261
269
276constexpr int32_t SOCKET_OPTION_NAME_BLOCK_SOURCE = 17;
277
285
293
300constexpr int32_t SOCKET_OPTION_NAME_HOP_LIMIT = 21;
301
309
316constexpr int32_t SOCKET_OPTION_NAME_IP_V6_ONLY = 27;
317
324constexpr int32_t SOCKET_OPTION_NAME_NO_DELAY = 1;
325
332constexpr int32_t SOCKET_OPTION_NAME_BSD_URGENT = 2;
333
340constexpr int32_t SOCKET_OPTION_NAME_EXPEDITED = 2;
341
348constexpr int32_t SOCKET_OPTION_NAME_NO_CHECKSUM = 1;
349
357
365
constexpr int32_t SOCKET_OPTION_NAME_HOP_LIMIT
Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet....
Definition socket_option_name_constants.h:300
constexpr int32_t SOCKET_OPTION_NAME_USE_LOOPBACK
Bypass hardware when possible.
Definition socket_option_name_constants.h:68
constexpr int32_t SOCKET_OPTION_NAME_RECEIVE_BUFFER
Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum m...
Definition socket_option_name_constants.h:116
constexpr int32_t SOCKET_OPTION_NAME_NO_DELAY
Disables the Nagle algorithm for send coalescing.
Definition socket_option_name_constants.h:324
constexpr int32_t SOCKET_OPTION_NAME_MULTICAST_LOOPBACK
An IP multicast loopback.
Definition socket_option_name_constants.h:228
constexpr int32_t SOCKET_OPTION_NAME_RECEIVE_TIMEOUT
Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous...
Definition socket_option_name_constants.h:148
constexpr int32_t SOCKET_OPTION_NAME_EXCLUSIVE_ADDRESS_USE
Enables a socket to be bound for exclusive access.
Definition socket_option_name_constants.h:100
constexpr int32_t SOCKET_OPTION_NAME_RECEIVE_LOW_WATER
Specifies the low water mark for xtd::net::sockets::socket::receive operations.
Definition socket_option_name_constants.h:132
constexpr int32_t SOCKET_OPTION_NAME_SEND_BUFFER
Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum mess...
Definition socket_option_name_constants.h:108
constexpr int32_t SOCKET_OPTION_NAME_IP_PROTECT_LEVEL
Enables restriction of a IPv6 socket to a specified scope, such as addresses with the same link local...
Definition socket_option_name_constants.h:308
constexpr int32_t SOCKET_OPTION_NAME_DROP_SOURCE_MEMBERSHIP
Drop a source group.
Definition socket_option_name_constants.h:268
constexpr int32_t SOCKET_OPTION_NAME_TYPE_OF_SERVICE
Change the IP header type of the service field.
Definition socket_option_name_constants.h:196
constexpr int32_t SOCKET_OPTION_NAME_DROP_MEMBERSHIP
Drop an IP group membership.
Definition socket_option_name_constants.h:244
constexpr int32_t SOCKET_OPTION_NAME_DONT_FRAGMENT
Do not fragment IP datagrams.
Definition socket_option_name_constants.h:252
constexpr int32_t SOCKET_OPTION_NAME_ADD_MEMBERSHIP
Add an IP group membership.
Definition socket_option_name_constants.h:236
constexpr int32_t SOCKET_OPTION_NAME_CHECKSUM_COVERAGE
Sets or get the UDP checksum coverage.
Definition socket_option_name_constants.h:356
constexpr int32_t SOCKET_OPTION_NAME_BLOCK_SOURCE
Block data from a source.
Definition socket_option_name_constants.h:276
constexpr int32_t SOCKET_OPTION_NAME_SEND_TIMEOUT
Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous me...
Definition socket_option_name_constants.h:140
constexpr int32_t SOCKET_OPTION_NAME_MULTICAST_TIME_TO_LIVE
An IP multicast Time to Live.
Definition socket_option_name_constants.h:220
constexpr int32_t SOCKET_OPTION_NAME_IP_TIME_TO_LIVE
Sets the IP header Time-to-Live field.
Definition socket_option_name_constants.h:204
constexpr int32_t SOCKET_OPTION_NAME_LINGER
Linger on close if unsent data is present.
Definition socket_option_name_constants.h:76
constexpr int32_t SOCKET_OPTION_NAME_IP_OPTIONS
Specifies the IP options to be inserted into outgoing datagrams.
Definition socket_option_name_constants.h:180
constexpr int32_t SOCKET_OPTION_NAME_ADD_SOURCE_MEMBERSHIP
Join a source group.
Definition socket_option_name_constants.h:260
constexpr int32_t SOCKET_OPTION_NAME_MULTICAST_INTERFACE
Sets the interface for outgoing multicast packets.
Definition socket_option_name_constants.h:212
constexpr int32_t SOCKET_OPTION_NAME_PACKET_INFORMATION
Return information about received packets.
Definition socket_option_name_constants.h:292
constexpr int32_t SOCKET_OPTION_NAME_EXPEDITED
Use expedited data as defined in RFC-1222. This option can be set only once; after it is set,...
Definition socket_option_name_constants.h:340
constexpr int32_t SOCKET_OPTION_NAME_BSD_URGENT
Use urgent data as defined in RFC-1222. This option can be set only once; after it is set,...
Definition socket_option_name_constants.h:332
constexpr int32_t SOCKET_OPTION_NAME_IP_V6_ONLY
Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications on...
Definition socket_option_name_constants.h:316
constexpr int32_t SOCKET_OPTION_NAME_SEND_LOW_WATER
Specifies the low water mark for xtd::net::sockets::socket::send operations.
Definition socket_option_name_constants.h:124
constexpr int32_t SOCKET_OPTION_NAME_DONT_ROUTE
Do not route; send the packet directly to the interface addresses.
Definition socket_option_name_constants.h:52
constexpr int32_t SOCKET_OPTION_NAME_BROADCAST
Permit sending broadcast messages on the socket.
Definition socket_option_name_constants.h:60
constexpr int32_t SOCKET_OPTION_NAME_DONT_LINGER
Close the socket gracefully without lingering.
Definition socket_option_name_constants.h:92
constexpr int32_t SOCKET_OPTION_NAME_DEBUG
Record debugging information.
Definition socket_option_name_constants.h:20
constexpr int32_t SOCKET_OPTION_NAME_REUSE_ADDRESS
Allows the socket to be bound to an address that is already in use.
Definition socket_option_name_constants.h:36
constexpr int32_t SOCKET_OPTION_NAME_NO_CHECKSUM
Send UDP datagrams with checksum set to zero.
Definition socket_option_name_constants.h:348
constexpr int32_t SOCKET_OPTION_NAME_HEADER_INCLUDED
Indicates that the application provides the IP header for outgoing datagrams.
Definition socket_option_name_constants.h:188
constexpr int32_t SOCKET_OPTION_NAME_KEEP_ALIVE
Use keep-alive.
Definition socket_option_name_constants.h:44
constexpr int32_t SOCKET_OPTION_NAME_MAX_CONNECTION
Not supported; will throw a xtd::net::sockets::socket_exception exception if used.
Definition socket_option_name_constants.h:172
constexpr int32_t SOCKET_OPTION_NAME_ACCEPT_CONNECTION
The socket is listening.
Definition socket_option_name_constants.h:28
constexpr int32_t SOCKET_OPTION_NAME_UPDATE_CONNECT_CONTEXT
Updates a connected socket's properties by using those of an existing socket. This is equivalent to u...
Definition socket_option_name_constants.h:372
constexpr int32_t SOCKET_OPTION_NAME_OUT_OF_BAND_INLINE
Receives out-of-band data in the normal data stream.
Definition socket_option_name_constants.h:84
constexpr int32_t SOCKET_OPTION_NAME_UNBLOCK_SOURCE
Unblock a previously blocked source.
Definition socket_option_name_constants.h:284
constexpr int32_t SOCKET_OPTION_NAME_UPDATE_ACCEPT_CONTEXT
Updates an accepted socket's properties by using those of an existing socket. This is equivalent to u...
Definition socket_option_name_constants.h:364
constexpr int32_t SOCKET_OPTION_NAME_TYPE
Gets the socket type.
Definition socket_option_name_constants.h:164
constexpr int32_t SOCKET_OPTION_NAME_ERROR
Gets the error status and clear.
Definition socket_option_name_constants.h:156