Enum ExtendedSocketError
Defines extended error codes for socket operations.
public enum ExtendedSocketError
Fields
AccessDenied = 10013An attempt was made to access a socket in a way that is forbidden by its access permissions.
AddressAlreadyInUse = 10048Only one use of an address is normally permitted.
AddressFamilyNotSupported = 10047The address family specified is not supported.
AddressNotAvailable = 10049The selected IP address is not valid in this context.
AlreadyInProgress = 10037The nonblocking socket already has an operation in progress.
ConnectionAborted = 10053The connection was aborted by the .NET Framework or the underlying socket provider.
ConnectionRefused = 10061The remote host is actively refusing a connection.
ConnectionReset = 10054The connection was reset by the remote peer.
DestinationAddressRequired = 10039A required address was omitted from an operation on a socket.
Disconnecting = 10101A graceful shutdown is in progress.
Fault = 10014An invalid pointer address was detected by the underlying socket provider.
HostDown = 10064The operation failed because the remote host is down.
HostNotFound = 11001No such host is known. The name is not an official host name or alias.
HostUnreachable = 10065There is no network route to the specified host.
IOPending = 997The application has initiated an overlapped operation that cannot be completed immediately.
InProgress = 10036A blocking operation is in progress.
Interrupted = 10004A blocking socket call was canceled.
InvalidArgument = 10022An invalid argument was supplied to a socket member.
IsConnected = 10056The socket is already connected.
LocalPeerInitiatedDisconnect = 100002The local peer initiated the disconnect.
MessageSize = 10040The datagram is too long.
NetworkDown = 10050The network is not available.
NetworkReset = 10052The application tried to set KeepAlive on a connection that has already timed out.
NetworkUnreachable = 10051No route to the remote host exists.
NoBufferSpaceAvailable = 10055No free buffer space is available for a socket operation.
NoData = 11004The requested name or IP address was not found on the name server.
NoRecovery = 11003The error is unrecoverable or the requested database cannot be located.
NotAuthorized = 100003The connection was not authorized.
NotConnected = 10057The application tried to send or receive data, and the socket is not connected.
NotInitialized = 10093The underlying socket provider has not been initialized.
NotSocket = 10038A socket operation was attempted on a non-socket.
OperationAborted = 995The overlapped operation was aborted due to the closure of the socket.
OperationNotSupported = 10045The address family is not supported by the protocol family.
ProcessLimit = 10067Too many processes are using the underlying socket provider.
ProtocolFamilyNotSupported = 10046The protocol family is not implemented or has not been configured.
ProtocolNotSupported = 10043The protocol is not implemented or has not been configured.
ProtocolOption = 10042An unknown, invalid, or unsupported option or level was used with a socket.
ProtocolType = 10041The protocol type is incorrect for this socket.
RemotePeerInitiatedDisconnect = 100001The remote peer initiated the disconnect.
Shutdown = 10058A request to send or receive data was disallowed because the socket has already been closed.
SocketError = -1An unspecified socket error has occurred.
SocketNotSupported = 10044The support for the specified socket type does not exist in this address family.
Success = 0The socket operation succeeded.
SystemNotReady = 10091The network subsystem is unavailable.
TimedOut = 10060The connection attempt timed out, or the connected host has failed to respond.
TooManyOpenSockets = 10024There are too many open sockets in the underlying socket provider.
TryAgain = 11002The name of the host could not be resolved. Try again later.
TypeNotFound = 10109The specified class was not found.
VersionNotSupported = 10092The version of the underlying socket provider is out of range.
WouldBlock = 10035An operation on a nonblocking socket cannot be completed immediately.
Remarks
This enum extends SocketError with additional custom error codes.