Share via


SocketError Enumeration

Specifies error codes for the Socket class.

Namespace: System.Net.Sockets
Assembly: System (in system.dll)

Syntax

public enum SocketError

Members

  Member name Description
AccessDenied A value indicating that an attempt was made to access a socket in a way that is forbidden by its access permissions.
AddressAlreadyInUse A value indicating that only one use of an address is normally permitted.
AddressFamilyNotSupported A value indicating that the specified address is incompatible with the requested protocol.
AddressNotAvailable A value indicating that the specified address is valid in this context.
AlreadyInProgress A value indicating that the nonblocking socket already has an operation in progress.
ConnectionAborted A value indicating that the connection was aborted by the .NET Micro Framework or the underlying socket provider.
ConnectionRefused A value indicating that the remote host is actively refusing a connection
ConnectionReset A value indicating that the connection was reset by the remote peer.
DestinationAddressRequired A value indicating that a required address was omitted from an operation on a socket.
Disconnecting A value indicating that a graceful shutdown is in progress.
Fault A value indicating that an invalid pointer address was detected by the underlying socket provider.
HostDown A value indicating that the operation failed because the remote host is down.
HostNotFound A value indicating that no such host is known. The name is not an official host name or alias.
HostUnreachable A value indicating that there is no network route to the specified host.
InProgress A value indicating that a blocking operation is in progress.
Interrupted A value indicating that a blocking Socket call was canceled.
InvalidArgument A value indicating that an invalid argument was supplied to a Socket member.
IsConnected A value indicating that the socket is already connected.
MessageSize A value indicating that the datagram is too long.
NetworkDown A value indicating that the network is not available
NetworkReset A value indicating that the application tried to set the KeepAlive configuration option on a connection that has already timed out.
NetworkUnreachable A value indicating that no route to the remote host exists.
NoBufferSpaceAvailable A value indicating that no free buffer space is available for a socket operation.
NoData A value indicating that the requested name or IP address was not found on the name server.
NoRecovery A value indicating that either the error is unrecoverable or the requested database cannot be located.
NotConnected A value indicating that the application tried to send or receive data, and the socket is not connected
NotInitialized A value indicating that the underlying socket provider has not been initialized.
NotSocket A value indicating that a socket operation was attempted on something that is not a socket.
OperationNotSupported A value indicating that the address family is not supported by the protocol family.
ProcessLimit A value indicating that too many processes are currently using the underlying socket provider.
ProtocolFamilyNotSupported A value indicating that the protocol family is not implemented or has not been configured.
ProtocolNotSupported A value indicating that the protocol is not implemented or has not been configured.
ProtocolOption A value indicating that an unknown, invalid, or unsupported configuration option or protocol was used with a socket.
ProtocolType A value indicating that the protocol type is incorrect for the socket.
Shutdown A value indicating that a request to send or receive data was disallowed because the socket has already been closed.
SocketError A value indicating that an unspecified socket error has occurred.
SocketNotSupported A value indicating that the support for the specified socket type does not exist in this address family.
Success A value indicating that the Socket operation succeeded.
SystemNotReady A value indicating that the network subsystem is unavailable.
TimedOut A value indicating that either the connection attempt timed out or the connected host has failed to respond.
TooManyOpenSockets A value indicating that there are too many open sockets in the underlying socket provider.
TryAgain A value indicating that the name of the host could not be resolved. Try again later.
TypeNotFound A value indicating that the specified type was not found.
VersionNotSupported A value indicating that the version of the underlying socket provider is out of range.
WouldBlock A value indicating that an operation on a nonblocking socket cannot be completed immediately.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

System.Net.Sockets Namespace