xtd 0.2.0
Loading...
Searching...
No Matches
socket error

Definition

socket error definitions.

Warning
Internal use only

Variables

constexpr int32_t SOCKET_ERROR_SOCKET_ERROR
 An unspecified error occurred.
 
constexpr int32_t SOCKET_ERROR_SUCCESS
 Operation successful.
 
constexpr int32_t SOCKET_ERROR_OPERATION_ABORTED
 The overlapped operation was aborted due to the closure of the socket.
 
constexpr int32_t SOCKET_ERROR_IO_PENDING
 The application has initiated an overlapped operation that cannot be completed immediately.
 
constexpr int32_t SOCKET_ERROR_INTERRUPTED
 A blocking call was canceled.
 
constexpr int32_t SOCKET_ERROR_ACCESS_DENIED
 Access denied.
 
constexpr int32_t SOCKET_ERROR_FAULT
 Invalid pointer address.
 
constexpr int32_t SOCKET_ERROR_INVALID_ARGUMENT
 Invalid argument.
 
constexpr int32_t SOCKET_ERROR_TOO_MANY_OPEN_SOCKETS
 Too many sockets opened.
 
constexpr int32_t SOCKET_ERROR_WOULD_BLOCK
 An operation on a nonblocking socket cannot be completed immediately.
 
constexpr int32_t SOCKET_ERROR_IN_PROGRESS
 A blocking operation is in progress.
 
constexpr int32_t SOCKET_ERROR_ALREADY_IN_PROGRESS
 The nonblocking socket has an operation in progress.
 
constexpr int32_t SOCKET_ERROR_NOT_SOCKET
 Operation attempted on a non-socket object.
 
constexpr int32_t SOCKET_ERROR_DESTINATION_ADDRESS_REQUIRED
 Required destination missing.
 
constexpr int32_t SOCKET_ERROR_MESSAGE_SIZE
 Datagram message is too long.
 
constexpr int32_t SOCKET_ERROR_PROTOCOL_TYPE
 The protocol type is incorrect.
 
constexpr int32_t SOCKET_ERROR_PROTOCOL_OPTION
 An unknown, invalid, or unsupported option or level was used.
 
constexpr int32_t SOCKET_ERROR_PROTOCOL_NOT_SUPPORTED
 The protocol is not implemented or has not been configured.
 
constexpr int32_t SOCKET_ERROR_SOCKET_NOT_SUPPORTED
 The support for the specified socket type does not exist in this address family.
 
constexpr int32_t SOCKET_ERROR_OPERATION_NOT_SUPPORTED
 The address family is not supported by the protocol family.
 
constexpr int32_t SOCKET_ERROR_PROTOCOL_FAMILY_NOT_SUPPORTED
 The protocol family is not implemented or has not been configured.
 
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 specified and the IPv6 stack is not installed on the local machine. This error is returned if the IPv4 address family was specified and the IPv4 stack is not installed on the local machine.
 
constexpr int32_t SOCKET_ERROR_ADDRESS_ALREADY_IN_USE
 Only one use of an address is normally permitted.
 
constexpr int32_t SOCKET_ERROR_ADDRESS_NOT_AVAILABLE
 The selected IP address is not valid in this context.
 
constexpr int32_t SOCKET_ERROR_NETWORK_DOWN
 The network is not available.
 
constexpr int32_t SOCKET_ERROR_NETWORK_UNREACHABLE
 No route to the remote host exists.
 
constexpr int32_t SOCKET_ERROR_NETWORK_RESET
 The application tried to set "keep alive" on a connection that timed out.
 
constexpr int32_t SOCKET_ERROR_CONNECTION_ABORTED
 Connection aborted.
 
constexpr int32_t SOCKET_ERROR_CONNECTION_RESET
 Connection reset by the remote peer.
 
constexpr int32_t SOCKET_ERROR_NO_BUFFER_SPACE_AVAILABLE
 No free buffer space available.
 
constexpr int32_t SOCKET_ERROR_IS_CONNECTED
 Already connected.
 
constexpr int32_t SOCKET_ERROR_NOT_CONNECTED
 The socket is not connected.
 
constexpr int32_t SOCKET_ERROR_SHUTDOWN
 A request to send or receive data was disallowed because the socket is closed.
 
constexpr int32_t SOCKET_ERROR_TIMED_OUT
 The connection attempt timed out, or the connected host has failed to respond.
 
constexpr int32_t SOCKET_ERROR_CONNECTION_REFUSED
 The remote host is actively refusing a connection.
 
constexpr int32_t SOCKET_ERROR_HOST_DOWN
 The operation failed because the remote host is down.
 
constexpr int32_t SOCKET_ERROR_HOST_UNREACHABLE
 There is no network route to the specified host.
 
constexpr int32_t SOCKET_ERROR_PROCESS_LIMIT
 Too many processes are using the underlying socket provider.
 
constexpr int32_t SOCKET_ERROR_SYSTEM_NOT_READY
 The network subsystem is unavailable.
 
constexpr int32_t SOCKET_ERROR_VERSION_NOT_SUPPORTED
 The version of the underlying socket provider is out of range.
 
constexpr int32_t SOCKET_ERROR_NOT_INITIALIZED
 The underlying socket provider has not been initialized.
 
constexpr int32_t SOCKET_ERROR_DISCONNECTING
 A graceful shutdown is in progress.
 
constexpr int32_t SOCKET_ERROR_TYPE_NOT_FOUND
 The specified class was not found.
 
constexpr int32_t SOCKET_ERROR_HOST_NOT_FOUND
 No such host is known. The name is not an official host name or alias.
 
constexpr int32_t SOCKET_ERROR_TRY_AGAIN
 The name of the host could not be resolved. Try again later.
 
constexpr int32_t SOCKET_ERROR_NOT_RECOVERY
 The error is unrecoverable or the requested database cannot be located.
 
constexpr int32_t SOCKET_ERROR_NO_DATA
 The requested name or IP address was not found on the name server.
 

Variable Documentation

◆ SOCKET_ERROR_SOCKET_ERROR

constexpr int32_t SOCKET_ERROR_SOCKET_ERROR
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

An unspecified error occurred.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_SUCCESS

constexpr int32_t SOCKET_ERROR_SUCCESS
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Operation successful.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_OPERATION_ABORTED

constexpr int32_t SOCKET_ERROR_OPERATION_ABORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The overlapped operation was aborted due to the closure of the socket.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_IO_PENDING

constexpr int32_t SOCKET_ERROR_IO_PENDING
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The application has initiated an overlapped operation that cannot be completed immediately.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_INTERRUPTED

constexpr int32_t SOCKET_ERROR_INTERRUPTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

A blocking call was canceled.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_ACCESS_DENIED

constexpr int32_t SOCKET_ERROR_ACCESS_DENIED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Access denied.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_FAULT

constexpr int32_t SOCKET_ERROR_FAULT
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Invalid pointer address.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_INVALID_ARGUMENT

constexpr int32_t SOCKET_ERROR_INVALID_ARGUMENT
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Invalid argument.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_TOO_MANY_OPEN_SOCKETS

constexpr int32_t SOCKET_ERROR_TOO_MANY_OPEN_SOCKETS
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Too many sockets opened.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_WOULD_BLOCK

constexpr int32_t SOCKET_ERROR_WOULD_BLOCK
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

An operation on a nonblocking socket cannot be completed immediately.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_IN_PROGRESS

constexpr int32_t SOCKET_ERROR_IN_PROGRESS
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

A blocking operation is in progress.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_ALREADY_IN_PROGRESS

constexpr int32_t SOCKET_ERROR_ALREADY_IN_PROGRESS
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The nonblocking socket has an operation in progress.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NOT_SOCKET

constexpr int32_t SOCKET_ERROR_NOT_SOCKET
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Operation attempted on a non-socket object.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_DESTINATION_ADDRESS_REQUIRED

constexpr int32_t SOCKET_ERROR_DESTINATION_ADDRESS_REQUIRED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Required destination missing.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_MESSAGE_SIZE

constexpr int32_t SOCKET_ERROR_MESSAGE_SIZE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Datagram message is too long.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_PROTOCOL_TYPE

constexpr int32_t SOCKET_ERROR_PROTOCOL_TYPE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The protocol type is incorrect.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_PROTOCOL_OPTION

constexpr int32_t SOCKET_ERROR_PROTOCOL_OPTION
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

An unknown, invalid, or unsupported option or level was used.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_PROTOCOL_NOT_SUPPORTED

constexpr int32_t SOCKET_ERROR_PROTOCOL_NOT_SUPPORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The protocol is not implemented or has not been configured.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_SOCKET_NOT_SUPPORTED

constexpr int32_t SOCKET_ERROR_SOCKET_NOT_SUPPORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The support for the specified socket type does not exist in this address family.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_OPERATION_NOT_SUPPORTED

constexpr int32_t SOCKET_ERROR_OPERATION_NOT_SUPPORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The address family is not supported by the protocol family.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_PROTOCOL_FAMILY_NOT_SUPPORTED

constexpr int32_t SOCKET_ERROR_PROTOCOL_FAMILY_NOT_SUPPORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The protocol family is not implemented or has not been configured.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED

constexpr int32_t SOCKET_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The address family specified is not supported. This error is returned if the IPv6 address family was specified and the IPv6 stack is not installed on the local machine. This error is returned if the IPv4 address family was specified and the IPv4 stack is not installed on the local machine.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_ADDRESS_ALREADY_IN_USE

constexpr int32_t SOCKET_ERROR_ADDRESS_ALREADY_IN_USE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Only one use of an address is normally permitted.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_ADDRESS_NOT_AVAILABLE

constexpr int32_t SOCKET_ERROR_ADDRESS_NOT_AVAILABLE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The selected IP address is not valid in this context.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NETWORK_DOWN

constexpr int32_t SOCKET_ERROR_NETWORK_DOWN
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The network is not available.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NETWORK_UNREACHABLE

constexpr int32_t SOCKET_ERROR_NETWORK_UNREACHABLE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

No route to the remote host exists.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NETWORK_RESET

constexpr int32_t SOCKET_ERROR_NETWORK_RESET
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The application tried to set "keep alive" on a connection that timed out.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_CONNECTION_ABORTED

constexpr int32_t SOCKET_ERROR_CONNECTION_ABORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Connection aborted.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_CONNECTION_RESET

constexpr int32_t SOCKET_ERROR_CONNECTION_RESET
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Connection reset by the remote peer.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NO_BUFFER_SPACE_AVAILABLE

constexpr int32_t SOCKET_ERROR_NO_BUFFER_SPACE_AVAILABLE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

No free buffer space available.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_IS_CONNECTED

constexpr int32_t SOCKET_ERROR_IS_CONNECTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Already connected.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NOT_CONNECTED

constexpr int32_t SOCKET_ERROR_NOT_CONNECTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The socket is not connected.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_SHUTDOWN

constexpr int32_t SOCKET_ERROR_SHUTDOWN
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

A request to send or receive data was disallowed because the socket is closed.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_TIMED_OUT

constexpr int32_t SOCKET_ERROR_TIMED_OUT
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The connection attempt timed out, or the connected host has failed to respond.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_CONNECTION_REFUSED

constexpr int32_t SOCKET_ERROR_CONNECTION_REFUSED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The remote host is actively refusing a connection.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_HOST_DOWN

constexpr int32_t SOCKET_ERROR_HOST_DOWN
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The operation failed because the remote host is down.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_HOST_UNREACHABLE

constexpr int32_t SOCKET_ERROR_HOST_UNREACHABLE
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

There is no network route to the specified host.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_PROCESS_LIMIT

constexpr int32_t SOCKET_ERROR_PROCESS_LIMIT
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

Too many processes are using the underlying socket provider.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_SYSTEM_NOT_READY

constexpr int32_t SOCKET_ERROR_SYSTEM_NOT_READY
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The network subsystem is unavailable.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_VERSION_NOT_SUPPORTED

constexpr int32_t SOCKET_ERROR_VERSION_NOT_SUPPORTED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The version of the underlying socket provider is out of range.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NOT_INITIALIZED

constexpr int32_t SOCKET_ERROR_NOT_INITIALIZED
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The underlying socket provider has not been initialized.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_DISCONNECTING

constexpr int32_t SOCKET_ERROR_DISCONNECTING
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

A graceful shutdown is in progress.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_TYPE_NOT_FOUND

constexpr int32_t SOCKET_ERROR_TYPE_NOT_FOUND
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The specified class was not found.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_HOST_NOT_FOUND

constexpr int32_t SOCKET_ERROR_HOST_NOT_FOUND
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

No such host is known. The name is not an official host name or alias.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_TRY_AGAIN

constexpr int32_t SOCKET_ERROR_TRY_AGAIN
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The name of the host could not be resolved. Try again later.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NOT_RECOVERY

constexpr int32_t SOCKET_ERROR_NOT_RECOVERY
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The error is unrecoverable or the requested database cannot be located.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SOCKET_ERROR_NO_DATA

constexpr int32_t SOCKET_ERROR_NO_DATA
constexpr

#include <xtd.core.native/include/xtd/native/socket_error_constants.h>

The requested name or IP address was not found on the name server.

Library
xtd.core.native
Remarks
Added specifically for xtd.
Warning
Internal use only