132 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::net::sockets::socket_error> {{
xtd::net::sockets::socket_error::sock_error,
"sock_error"}, {
xtd::net::sockets::socket_error::success,
"success"}, {
xtd::net::sockets::socket_error::operation_aborted,
"operation_aborted"}, {
xtd::net::sockets::socket_error::io_pending,
"io_pending"}, {
xtd::net::sockets::socket_error::interrupted,
"interrupted"}, {
xtd::net::sockets::socket_error::access_denied,
"access_denied"}, {
xtd::net::sockets::socket_error::fault,
"fault"}, {
xtd::net::sockets::socket_error::invalid_argument,
"invalid_argument"}, {
xtd::net::sockets::socket_error::too_many_open_sockets,
"too_many_open_sockets"}, {
xtd::net::sockets::socket_error::would_block,
"would_block"}, {
xtd::net::sockets::socket_error::in_progress,
"in_progress"}, {
xtd::net::sockets::socket_error::already_in_progress,
"already_in_progress"}, {
xtd::net::sockets::socket_error::not_socket,
"not_socket"}, {
xtd::net::sockets::socket_error::destination_address_required,
"destination_address_required"}, {
xtd::net::sockets::socket_error::message_size,
"message_size"}, {
xtd::net::sockets::socket_error::protocol_type,
"protocol_type"}, {
xtd::net::sockets::socket_error::protocol_option,
"protocol_option"}, {
xtd::net::sockets::socket_error::protocol_not_supported,
"protocol_not_supported"}, {
xtd::net::sockets::socket_error::socket_not_supported,
"socket_not_supported"}, {
xtd::net::sockets::socket_error::operation_not_supported,
"operation_not_supported"}, {
xtd::net::sockets::socket_error::protocol_family_not_supported,
"protocol_family_not_supported"}, {
xtd::net::sockets::socket_error::address_family_not_supported,
"address_family_not_supported"}, {
xtd::net::sockets::socket_error::address_already_in_use,
"address_already_in_use"}, {
xtd::net::sockets::socket_error::address_not_available,
"address_not_available"}, {
xtd::net::sockets::socket_error::network_down,
"network_down"}, {
xtd::net::sockets::socket_error::network_unreachable,
"network_unreachable"}, {
xtd::net::sockets::socket_error::network_reset,
"network_reset"}, {
xtd::net::sockets::socket_error::connection_aborted,
"connection_aborted"}, {
xtd::net::sockets::socket_error::connection_reset,
"connection_reset"}, {
xtd::net::sockets::socket_error::no_buffer_space_available,
"no_buffer_space_available"}, {
xtd::net::sockets::socket_error::is_connected,
"is_connected"}, {
xtd::net::sockets::socket_error::not_connected,
"not_connected"}, {
xtd::net::sockets::socket_error::shutdown,
"shutdown"}, {
xtd::net::sockets::socket_error::timed_out,
"timed_out"}, {
xtd::net::sockets::socket_error::connection_refused,
"connection_refused"}, {
xtd::net::sockets::socket_error::host_down,
"host_down"}, {
xtd::net::sockets::socket_error::host_unreachable,
"host_unreachable"}, {
xtd::net::sockets::socket_error::process_limit,
"process_limit"}, {
xtd::net::sockets::socket_error::system_not_ready,
"system_not_ready"}, {
xtd::net::sockets::socket_error::version_not_supported,
"version_not_supported"}, {
xtd::net::sockets::socket_error::not_initialized,
"not_initialized"}, {
xtd::net::sockets::socket_error::disconnecting,
"disconnecting"}, {
xtd::net::sockets::socket_error::type_not_found,
"type_not_found"}, {
xtd::net::sockets::socket_error::host_not_found,
"host_not_found"}, {
xtd::net::sockets::socket_error::try_again,
"try_again"}, {
xtd::net::sockets::socket_error::no_recovery,
"no_recovery"}, {
xtd::net::sockets::socket_error::no_data,
"no_data"}};}
Contains enum_ and enum_ut_ keywords.
socket_error
Defines error codes for the xtd::net::sockets::socket class.
Definition socket_error.hpp:30
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:24
protocol_type
Specifies the protocols that the xtd::net::sockets::socket class supports.
Definition protocol_type.hpp:30
@ protocol_option
An unknown, invalid, or unsupported option or level was used.
Definition socket_error.hpp:64
@ not_socket
Operation attempted on a non-socket object.
Definition socket_error.hpp:56
@ network_reset
The application tried to set "keep alive" on a connection that timed out.
Definition socket_error.hpp:84
@ host_not_found
No such host is known. The name is not an official host name or alias.
Definition socket_error.hpp:118
@ disconnecting
A graceful shutdown is in progress.
Definition socket_error.hpp:114
@ system_not_ready
The network subsystem is unavailable.
Definition socket_error.hpp:108
@ address_not_available
The selected IP address is not valid in this context.
Definition socket_error.hpp:78
@ no_recovery
The error is unrecoverable or the requested database cannot be located.
Definition socket_error.hpp:122
@ not_initialized
The underlying socket provider has not been initialized.
Definition socket_error.hpp:112
@ success
Operation successful.
Definition socket_error.hpp:34
@ host_down
The operation failed because the remote host is down.
Definition socket_error.hpp:102
@ too_many_open_sockets
Too many sockets opened.
Definition socket_error.hpp:48
@ connection_aborted
Connection aborted.
Definition socket_error.hpp:86
@ destination_address_required
Required destination missing.
Definition socket_error.hpp:58
@ fault
Invalid pointer address.
Definition socket_error.hpp:44
@ protocol_family_not_supported
The protocol family is not implemented or has not been configured.
Definition socket_error.hpp:72
@ connection_refused
The remote host is actively refusing a connection.
Definition socket_error.hpp:100
@ is_connected
Already connected.
Definition socket_error.hpp:92
@ no_data
The requested name or IP address was not found on the name server.
Definition socket_error.hpp:124
@ timed_out
The connection attempt timed out, or the connected host has failed to respond.
Definition socket_error.hpp:98
@ shutdown
A request to send or receive data was disallowed because the socket is closed.
Definition socket_error.hpp:96
@ network_unreachable
No route to the remote host exists.
Definition socket_error.hpp:82
@ operation_not_supported
The address family is not supported by the protocol family.
Definition socket_error.hpp:70
@ not_connected
The socket is not connected.
Definition socket_error.hpp:94
@ protocol_type
The protocol type is incorrect.
Definition socket_error.hpp:62
@ address_family_not_supported
The address family specified is not supported. This error is returned if the IPv6 address family was ...
Definition socket_error.hpp:74
@ try_again
The name of the host could not be resolved. Try again later.
Definition socket_error.hpp:120
@ network_down
The network is not available.
Definition socket_error.hpp:80
@ operation_aborted
The overlapped operation was aborted due to the closure of the socket.
Definition socket_error.hpp:36
@ io_pending
The application has initiated an overlapped operation that cannot be completed immediately.
Definition socket_error.hpp:38
@ protocol_not_supported
The protocol is not implemented or has not been configured.
Definition socket_error.hpp:66
@ already_in_progress
The nonblocking socket has an operation in progress.
Definition socket_error.hpp:54
@ access_denied
Access denied.
Definition socket_error.hpp:42
@ process_limit
Too many processes are using the underlying socket provider.
Definition socket_error.hpp:106
@ would_block
An operation on a nonblocking socket cannot be completed immediately.
Definition socket_error.hpp:50
@ connection_reset
Connection reset by the remote peer.
Definition socket_error.hpp:88
@ type_not_found
The specified class was not found.
Definition socket_error.hpp:116
@ socket_not_supported
The support for the specified socket type does not exist in this address family.
Definition socket_error.hpp:68
@ version_not_supported
The version of the underlying socket provider is out of range.
Definition socket_error.hpp:110
@ message_size
Datagram message is too long.
Definition socket_error.hpp:60
@ invalid_argument
Invalid argument.
Definition socket_error.hpp:46
@ address_already_in_use
Only one use of an address is normally permitted.
Definition socket_error.hpp:76
@ no_buffer_space_available
No free buffer space available.
Definition socket_error.hpp:90
@ in_progress
A blocking operation is in progress.
Definition socket_error.hpp:52
@ interrupted
A blocking call was canceled.
Definition socket_error.hpp:40
@ sock_error
An unspecified error occurred.
Definition socket_error.hpp:32
@ host_unreachable
There is no network route to the specified host.
Definition socket_error.hpp:104
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition address_family.hpp:16
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Provides the registration struct for enumerations.
Definition enum_register.hpp:38