Defines error codes for the Socket class.
public enum class SocketError
public enum SocketError
type SocketError =
Public Enum SocketError
An attempt was made to access a Socket in a way that is forbidden by its access permissions.
Only one use of an address is normally permitted.
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.
The selected IP address is not valid in this context.
The nonblocking Socket already has an operation in progress.
The connection was aborted by the .NET Framework or the underlying socket provider.
The remote host is actively refusing a connection.
The connection was reset by the remote peer.
A required address was omitted from an operation on a Socket.
A graceful shutdown is in progress.
An invalid pointer address was detected by the underlying socket provider.
The operation failed because the remote host is down.
No such host is known. The name is not an official host name or alias.
There is no network route to the specified host.
A blocking operation is in progress.
A blocking Socket call was canceled.
An invalid argument was supplied to a Socket member.
The application has initiated an overlapped operation that cannot be completed immediately.
The Socket is already connected.
The datagram is too long.
The network is not available.
The application tried to set KeepAlive on a connection that has already timed out.
No route to the remote host exists.
No free buffer space is available for a Socket operation.
The requested name or IP address was not found on the name server.
The error is unrecoverable or the requested database cannot be located.
The application tried to send or receive data, and the Socket is not connected.
The underlying socket provider has not been initialized.
A Socket operation was attempted on a non-socket.
The overlapped operation was aborted due to the closure of the Socket.
The address family is not supported by the protocol family.
Too many processes are using the underlying socket provider.
The protocol family is not implemented or has not been configured.
The protocol is not implemented or has not been configured.
An unknown, invalid, or unsupported option or level was used with a Socket.
The protocol type is incorrect for this Socket.
A request to send or receive data was disallowed because the Socket has already been closed.
An unspecified Socket error has occurred.
The support for the specified socket type does not exist in this address family.
The Socket operation succeeded.
The network subsystem is unavailable.
The connection attempt timed out, or the connected host has failed to respond.
There are too many open sockets in the underlying socket provider.
The name of the host could not be resolved. Try again later.
The specified class was not found.
The version of the underlying socket provider is out of range.
An operation on a nonblocking socket cannot be completed immediately.
Most of these errors are returned by the underlying socket provider.