xtd 0.2.0
Loading...
Searching...
No Matches
socket_error_constants.hpp
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_CORE_NATIVE_LIBRARY__)
7#error "Do not include this file: Internal use only"
8#endif
10
11#include <cstdint>
12
19constexpr int32_t SOCKET_ERROR_SOCKET_ERROR = -1;
20
27constexpr int32_t SOCKET_ERROR_SUCCESS = 0;
28
35constexpr int32_t SOCKET_ERROR_OPERATION_ABORTED = 995;
36
43constexpr int32_t SOCKET_ERROR_IO_PENDING = 997;
44
51constexpr int32_t SOCKET_ERROR_INTERRUPTED = 10004;
52
59constexpr int32_t SOCKET_ERROR_ACCESS_DENIED = 10013;
60
67constexpr int32_t SOCKET_ERROR_FAULT = 10014;
68
75constexpr int32_t SOCKET_ERROR_INVALID_ARGUMENT = 10022;
76
83constexpr int32_t SOCKET_ERROR_TOO_MANY_OPEN_SOCKETS = 10024;
84
91constexpr int32_t SOCKET_ERROR_WOULD_BLOCK = 10035;
92
99constexpr int32_t SOCKET_ERROR_IN_PROGRESS = 10036;
100
107constexpr int32_t SOCKET_ERROR_ALREADY_IN_PROGRESS = 10037;
108
115constexpr int32_t SOCKET_ERROR_NOT_SOCKET = 10038;
116
124
131constexpr int32_t SOCKET_ERROR_MESSAGE_SIZE = 10040;
132
139constexpr int32_t SOCKET_ERROR_PROTOCOL_TYPE = 10041;
140
147constexpr int32_t SOCKET_ERROR_PROTOCOL_OPTION = 10042;
148
155constexpr int32_t SOCKET_ERROR_PROTOCOL_NOT_SUPPORTED = 10043;
156
163constexpr int32_t SOCKET_ERROR_SOCKET_NOT_SUPPORTED = 10044;
164
171constexpr int32_t SOCKET_ERROR_OPERATION_NOT_SUPPORTED = 10045;
172
180
188
195constexpr int32_t SOCKET_ERROR_ADDRESS_ALREADY_IN_USE = 10048;
196
203constexpr int32_t SOCKET_ERROR_ADDRESS_NOT_AVAILABLE = 10049;
204
211constexpr int32_t SOCKET_ERROR_NETWORK_DOWN = 10050;
212
219constexpr int32_t SOCKET_ERROR_NETWORK_UNREACHABLE = 10051;
220
227constexpr int32_t SOCKET_ERROR_NETWORK_RESET = 10052;
228
235constexpr int32_t SOCKET_ERROR_CONNECTION_ABORTED = 10053;
236
243constexpr int32_t SOCKET_ERROR_CONNECTION_RESET = 10054;
244
252
259constexpr int32_t SOCKET_ERROR_IS_CONNECTED = 10056;
260
267constexpr int32_t SOCKET_ERROR_NOT_CONNECTED = 10057;
268
275constexpr int32_t SOCKET_ERROR_SHUTDOWN = 10058;
276
283constexpr int32_t SOCKET_ERROR_TIMED_OUT = 10060;
284
291constexpr int32_t SOCKET_ERROR_CONNECTION_REFUSED = 10061;
292
299constexpr int32_t SOCKET_ERROR_HOST_DOWN = 10064;
300
307constexpr int32_t SOCKET_ERROR_HOST_UNREACHABLE = 10065;
308
315constexpr int32_t SOCKET_ERROR_PROCESS_LIMIT = 10067;
316
323constexpr int32_t SOCKET_ERROR_SYSTEM_NOT_READY = 10091;
324
331constexpr int32_t SOCKET_ERROR_VERSION_NOT_SUPPORTED = 10092;
332
339constexpr int32_t SOCKET_ERROR_NOT_INITIALIZED = 10093;
340
347constexpr int32_t SOCKET_ERROR_DISCONNECTING = 10101;
348
355constexpr int32_t SOCKET_ERROR_TYPE_NOT_FOUND = 10109;
356
363constexpr int32_t SOCKET_ERROR_HOST_NOT_FOUND = 10001;
364
371constexpr int32_t SOCKET_ERROR_TRY_AGAIN = 10002;
372
379constexpr int32_t SOCKET_ERROR_NOT_RECOVERY = 10003;
380
387constexpr int32_t SOCKET_ERROR_NO_DATA = 10004;
constexpr int32_t SOCKET_ERROR_SUCCESS
Operation successful.
Definition socket_error_constants.hpp:27
constexpr int32_t SOCKET_ERROR_TRY_AGAIN
The name of the host could not be resolved. Try again later.
Definition socket_error_constants.hpp:371
constexpr int32_t SOCKET_ERROR_WOULD_BLOCK
An operation on a nonblocking socket cannot be completed immediately.
Definition socket_error_constants.hpp:91
constexpr int32_t SOCKET_ERROR_SOCKET_NOT_SUPPORTED
The support for the specified socket type does not exist in this address family.
Definition socket_error_constants.hpp:163
constexpr int32_t SOCKET_ERROR_PROTOCOL_FAMILY_NOT_SUPPORTED
The protocol family is not implemented or has not been configured.
Definition socket_error_constants.hpp:179
constexpr int32_t SOCKET_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED
The address family specified is not supported. This error is returned if the IPv6 address family was ...
Definition socket_error_constants.hpp:187
constexpr int32_t SOCKET_ERROR_TOO_MANY_OPEN_SOCKETS
Too many sockets opened.
Definition socket_error_constants.hpp:83
constexpr int32_t SOCKET_ERROR_IO_PENDING
The application has initiated an overlapped operation that cannot be completed immediately.
Definition socket_error_constants.hpp:43
constexpr int32_t SOCKET_ERROR_VERSION_NOT_SUPPORTED
The version of the underlying socket provider is out of range.
Definition socket_error_constants.hpp:331
constexpr int32_t SOCKET_ERROR_DESTINATION_ADDRESS_REQUIRED
Required destination missing.
Definition socket_error_constants.hpp:123
constexpr int32_t SOCKET_ERROR_ALREADY_IN_PROGRESS
The nonblocking socket has an operation in progress.
Definition socket_error_constants.hpp:107
constexpr int32_t SOCKET_ERROR_NETWORK_UNREACHABLE
No route to the remote host exists.
Definition socket_error_constants.hpp:219
constexpr int32_t SOCKET_ERROR_IS_CONNECTED
Already connected.
Definition socket_error_constants.hpp:259
constexpr int32_t SOCKET_ERROR_HOST_DOWN
The operation failed because the remote host is down.
Definition socket_error_constants.hpp:299
constexpr int32_t SOCKET_ERROR_DISCONNECTING
A graceful shutdown is in progress.
Definition socket_error_constants.hpp:347
constexpr int32_t SOCKET_ERROR_INTERRUPTED
A blocking call was canceled.
Definition socket_error_constants.hpp:51
constexpr int32_t SOCKET_ERROR_ADDRESS_ALREADY_IN_USE
Only one use of an address is normally permitted.
Definition socket_error_constants.hpp:195
constexpr int32_t SOCKET_ERROR_PROTOCOL_NOT_SUPPORTED
The protocol is not implemented or has not been configured.
Definition socket_error_constants.hpp:155
constexpr int32_t SOCKET_ERROR_CONNECTION_REFUSED
The remote host is actively refusing a connection.
Definition socket_error_constants.hpp:291
constexpr int32_t SOCKET_ERROR_NO_DATA
The requested name or IP address was not found on the name server.
Definition socket_error_constants.hpp:387
constexpr int32_t SOCKET_ERROR_SHUTDOWN
A request to send or receive data was disallowed because the socket is closed.
Definition socket_error_constants.hpp:275
constexpr int32_t SOCKET_ERROR_CONNECTION_ABORTED
Connection aborted.
Definition socket_error_constants.hpp:235
constexpr int32_t SOCKET_ERROR_OPERATION_ABORTED
The overlapped operation was aborted due to the closure of the socket.
Definition socket_error_constants.hpp:35
constexpr int32_t SOCKET_ERROR_HOST_UNREACHABLE
There is no network route to the specified host.
Definition socket_error_constants.hpp:307
constexpr int32_t SOCKET_ERROR_HOST_NOT_FOUND
No such host is known. The name is not an official host name or alias.
Definition socket_error_constants.hpp:363
constexpr int32_t SOCKET_ERROR_TYPE_NOT_FOUND
The specified class was not found.
Definition socket_error_constants.hpp:355
constexpr int32_t SOCKET_ERROR_PROTOCOL_OPTION
An unknown, invalid, or unsupported option or level was used.
Definition socket_error_constants.hpp:147
constexpr int32_t SOCKET_ERROR_NOT_CONNECTED
The socket is not connected.
Definition socket_error_constants.hpp:267
constexpr int32_t SOCKET_ERROR_CONNECTION_RESET
Connection reset by the remote peer.
Definition socket_error_constants.hpp:243
constexpr int32_t SOCKET_ERROR_MESSAGE_SIZE
Datagram message is too long.
Definition socket_error_constants.hpp:131
constexpr int32_t SOCKET_ERROR_SYSTEM_NOT_READY
The network subsystem is unavailable.
Definition socket_error_constants.hpp:323
constexpr int32_t SOCKET_ERROR_NETWORK_RESET
The application tried to set "keep alive" on a connection that timed out.
Definition socket_error_constants.hpp:227
constexpr int32_t SOCKET_ERROR_ADDRESS_NOT_AVAILABLE
The selected IP address is not valid in this context.
Definition socket_error_constants.hpp:203
constexpr int32_t SOCKET_ERROR_PROTOCOL_TYPE
The protocol type is incorrect.
Definition socket_error_constants.hpp:139
constexpr int32_t SOCKET_ERROR_NOT_INITIALIZED
The underlying socket provider has not been initialized.
Definition socket_error_constants.hpp:339
constexpr int32_t SOCKET_ERROR_INVALID_ARGUMENT
Invalid argument.
Definition socket_error_constants.hpp:75
constexpr int32_t SOCKET_ERROR_SOCKET_ERROR
An unspecified error occurred.
Definition socket_error_constants.hpp:19
constexpr int32_t SOCKET_ERROR_NETWORK_DOWN
The network is not available.
Definition socket_error_constants.hpp:211
constexpr int32_t SOCKET_ERROR_NO_BUFFER_SPACE_AVAILABLE
No free buffer space available.
Definition socket_error_constants.hpp:251
constexpr int32_t SOCKET_ERROR_PROCESS_LIMIT
Too many processes are using the underlying socket provider.
Definition socket_error_constants.hpp:315
constexpr int32_t SOCKET_ERROR_ACCESS_DENIED
Access denied.
Definition socket_error_constants.hpp:59
constexpr int32_t SOCKET_ERROR_TIMED_OUT
The connection attempt timed out, or the connected host has failed to respond.
Definition socket_error_constants.hpp:283
constexpr int32_t SOCKET_ERROR_FAULT
Invalid pointer address.
Definition socket_error_constants.hpp:67
constexpr int32_t SOCKET_ERROR_NOT_RECOVERY
The error is unrecoverable or the requested database cannot be located.
Definition socket_error_constants.hpp:379
constexpr int32_t SOCKET_ERROR_IN_PROGRESS
A blocking operation is in progress.
Definition socket_error_constants.hpp:99
constexpr int32_t SOCKET_ERROR_OPERATION_NOT_SUPPORTED
The address family is not supported by the protocol family.
Definition socket_error_constants.hpp:171
constexpr int32_t SOCKET_ERROR_NOT_SOCKET
Operation attempted on a non-socket object.
Definition socket_error_constants.hpp:115