SocketError Enumeration
.NET Framework 2.0
Note: This enumeration is new in the .NET Framework version 2.0.
Defines error codes for the Socket class.
Namespace: System.Net.Sockets
Assembly: System (in system.dll)
Assembly: System (in system.dll)
| Member name | Description | |
|---|---|---|
| AccessDenied | An attempt was made to access a Socket in a way that is forbidden by its access permissions. | |
| AddressAlreadyInUse | Only one use of an address is normally permitted. | |
| AddressFamilyNotSupported | The address is incompatible with the requested protocol. | |
| AddressNotAvailable | The selected address is valid in this context. | |
| AlreadyInProgress | The nonblocking Socket already has an operation in progress. | |
| ConnectionAborted | The connection was aborted by the .NET Framework or the underlying socket provider. | |
| ConnectionRefused | The remote host is actively refusing a connection. | |
| ConnectionReset | The connection was reset by the remote peer. | |
| DestinationAddressRequired | A required address was omitted from an operation on a Socket. | |
| Disconnecting | A graceful shutdown is in progress. | |
| Fault | An invalid pointer address was detected by the underlying socket provider. | |
| HostDown | The operation failed because the remote host is down. | |
| HostNotFound | No such host is known. The name is not an official host name or alias. | |
| HostUnreachable | There is no network route to the specified host. | |
| InProgress | A blocking operation is in progress. | |
| Interrupted | A blocking Socket call was canceled. | |
| InvalidArgument | An invalid argument was supplied to a Socket member. | |
| IOPending | The application has initiated an overlapped operation that cannot be completed immediately. | |
| IsConnected | The Socket is already connected. | |
| MessageSize | The datagram is too long. | |
| NetworkDown | The network is not available. | |
| NetworkReset | The application tried to set KeepAlive on a connection that has already timed out. | |
| NetworkUnreachable | No route to the remote host exists. | |
| NoBufferSpaceAvailable | No free buffer space is available for a Socket operation. | |
| NoData | The requested name or IP address was not found on the name server. | |
| NoRecovery | The error is unrecoverable or the requested database cannot be located. | |
| NotConnected | The application tried to send or receive data, and the Socket is not connected. | |
| NotInitialized | The underlying socket provider has not been initialized. | |
| NotSocket | A Socket operation was attempted on a non-socket. | |
| OperationAborted | The overlapped operation was aborted due to the closure of the Socket. | |
| OperationNotSupported | The address family is not supported by the protocol family. | |
| ProcessLimit | Too many processes are using the underlying socket provider. | |
| ProtocolFamilyNotSupported | The protocol family is not implemented or has not been configured. | |
| ProtocolNotSupported | The protocol is not implemented or has not been configured. | |
| ProtocolOption | An unknown, invalid, or unsupported option or level was used with a Socket. | |
| ProtocolType | The protocol type is incorrect for this Socket. | |
| Shutdown | A request to send or receive data was disallowed because the Socket has already been closed. | |
| SocketError | An unspecified Socket error has occurred. | |
| SocketNotSupported | The support for the specified socket type does not exist in this address family. | |
| Success | The Socket operation succeeded. | |
| SystemNotReady | The network subsystem is unavailable. | |
| TimedOut | The connection attempt timed out, or the connected host has failed to respond. | |
| TooManyOpenSockets | There are too many open sockets in the underlying socket provider. | |
| TryAgain | The name of the host could not be resolved. Try again later. | |
| TypeNotFound | The specified class was not found. | |
| VersionNotSupported | The version of the underlying socket provider is out of range. | |
| WouldBlock | An operation on a nonblocking socket cannot be completed immediately. |
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: