SocketError

SocketError enum

Enumerates the socket error types.

enum class SocketError

Values

NameValueDescription
Success0A socket operation completed successfully.
SocketError-1An unspecified socket error occurred.
Interrupted10004A blocking socket call is cancelled.
AccessDenied10013Access to a socket is denied.
Fault10014An invalid pointer address is detected.
InvalidArgument10022An invalid argument is provided.
TooManyOpenSockets10024There are too many open sockets in the underlying socket provider.
WouldBlock10035An operation cannot be immediately completed on a non-blocking socket.
InProgress10036A blocking operation is in progress.
AlreadyInProgress10037A non-blocking socket already has a running operation.
NotSocket10038An attempt to call a socket operation on non-socket.
DestinationAddressRequired10039A required address is omitted from a socket operation.
MessageSize10040A datagram is too long.
ProtocolType10041A protocol type is not supported by this socket.
ProtocolOption10042An unknown, invalid, or unsupported option or level is used.
ProtocolNotSupported10043A protocol is not implemented or not configured.
SocketNotSupported10044An address family doesn’t support the specified socket.
OperationNotSupported10045A protocol family doesn’t support an address family.
ProtocolFamilyNotSupported10046A protocol family is not implemented or not configured.
AddressFamilyNotSupported10047The specified address family is not supported.
AddressAlreadyInUse10048An address can be used only once.
AddressNotAvailable10049The selected IP address is not valid in this context.
NetworkDown10050The network is not available.
NetworkUnreachable10051No route to the remote host exists.
NetworkReset10052An application tried to set ‘Keep-Alive’ on a connection that has already timed out.
ConnectionAborted10053A connection is aborted.
ConnectionReset10054A connection is reset by a remote peer.
NoBufferSpaceAvailable10055No free buffer space is available for a socket operation.
IsConnected10056A socket is already connected.
NotConnected10057An application tried to send or receive data, and a socket is not connected.
Shutdown10058A request to send or receive data is forbidden because the socket has already been closed.
TimedOut10060A connection attempt timed out, or a connected host has failed to respond.
ConnectionRefused10061A remote host is actively refusing a connection.
HostDown10064An operation failed because a remote host is down.
HostUnreachable10065No network route to the specified host exists.
ProcessLimit10067Too many processes are using the underlying socket provider.
SystemNotReady10091A network subsystem is unavailable.
VersionNotSupported10092A version of the underlying socket provider is out of range.
NotInitialized10093The underlying socket provider is not initialized.
Disconnecting10101A graceful shutdown is in progress.
TypeNotFound10109The specified class is not found.
HostNotFound11001The specified host is unknown.
TryAgain11002A name of a host cannot be resolved.
NoRecovery11003An error is unrecoverable or a requested database cannot be located.
NoData11004A requested name or IP address is not found on the name server.

See Also