xtd 0.2.0
Loading...
Searching...
No Matches

◆ socket_error

Defines error codes for the xtd::net::sockets::socket class.

enum class socket_error
socket_error
Defines error codes for the xtd::net::sockets::socket class.
Definition socket_error.h:30
Header
#include <xtd/net/sockets/socket_error>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
sock_error 

An unspecified error occurred.

success 

Operation successful.

operation_aborted 

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

io_pending 

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

interrupted 

A blocking call was canceled.

access_denied 

Access denied.

fault 

Invalid pointer address.

invalid_argument 

Invalid argument.

too_many_open_sockets 

Too many sockets opened.

would_block 

An operation on a nonblocking socket cannot be completed immediately.

in_progress 

A blocking operation is in progress.

already_in_progress 

The nonblocking socket has an operation in progress.

not_socket 

Operation attempted on a non-socket object.

destination_address_required 

Required destination missing.

message_size 

Datagram message is too long.

protocol_type 

The protocol type is incorrect.

protocol_option 

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

protocol_not_supported 

The protocol is not implemented or has not been configured.

socket_not_supported 

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

operation_not_supported 

The address family is not supported by the protocol family.

protocol_family_not_supported 

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

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.

address_already_in_use 

Only one use of an address is normally permitted.

address_not_available 

The selected IP address is not valid in this context.

network_down 

The network is not available.

network_unreachable 

No route to the remote host exists.

network_reset 

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

connection_aborted 

Connection aborted.

connection_reset 

Connection reset by the remote peer.

no_buffer_space_available 

No free buffer space available.

is_connected 

Already connected.

not_connected 

The socket is not connected.

shutdown 

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

timed_out 

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

connection_refused 

The remote host is actively refusing a connection.

host_down 

The operation failed because the remote host is down.

host_unreachable 

There is no network route to the specified host.

process_limit 

Too many processes are using the underlying socket provider.

system_not_ready 

The network subsystem is unavailable.

version_not_supported 

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

not_initialized 

The underlying socket provider has not been initialized.

disconnecting 

A graceful shutdown is in progress.

type_not_found 

The specified class was not found.

host_not_found 

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

try_again 

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

no_recovery 

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

no_data 

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