Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.Net.Sockets.SocketError
Assembly: System.Net.Primitives
Defines error codes for the <see cref="T:System.Net.Sockets.Socket" /> class.
Values
SocketError
An unspecified <see cref="T:System.Net.Sockets.Socket" /> error has occurred.
Success
The <see cref="T:System.Net.Sockets.Socket" /> operation succeeded.
OperationAborted
The overlapped operation was aborted due to the closure of the <see cref="T:System.Net.Sockets.Socket" /> .
IOPending
The application has initiated an overlapped operation that cannot be completed immediately.
Interrupted
A blocking <see cref="T:System.Net.Sockets.Socket" /> call was canceled.
AccessDenied
An attempt was made to access a <see cref="T:System.Net.Sockets.Socket" /> in a way that is forbidden by its access permissions.
Fault
An invalid pointer address was detected by the underlying socket provider.
InvalidArgument
An invalid argument was supplied to a <see cref="T:System.Net.Sockets.Socket" /> member.
TooManyOpenSockets
There are too many open sockets in the underlying socket provider.
WouldBlock
An operation on a nonblocking socket cannot be completed immediately.
InProgress
A blocking operation is in progress.
AlreadyInProgress
The nonblocking <see cref="T:System.Net.Sockets.Socket" /> already has an operation in progress.
NotSocket
A <see cref="T:System.Net.Sockets.Socket" /> operation was attempted on a non-socket.
DestinationAddressRequired
A required address was omitted from an operation on a <see cref="T:System.Net.Sockets.Socket" /> .
MessageSize
The datagram is too long.
ProtocolType
The protocol type is incorrect for this <see cref="T:System.Net.Sockets.Socket" /> .
ProtocolOption
An unknown, invalid, or unsupported option or level was used with a <see cref="T:System.Net.Sockets.Socket" /> .
ProtocolNotSupported
The protocol is not implemented or has not been configured.
SocketNotSupported
The support for the specified socket type does not exist in this address family.
OperationNotSupported
The address family is not supported by the protocol family.
ProtocolFamilyNotSupported
The protocol family is not implemented or has not been configured.
AddressFamilyNotSupported
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.
AddressAlreadyInUse
Only one use of an address is normally permitted.
AddressNotAvailable
The selected IP address is not valid in this context.
NetworkDown
The network is not available.
NetworkUnreachable
No route to the remote host exists.
NetworkReset
The application tried to set <see cref="F:System.Net.Sockets.SocketOptionName.KeepAlive" /> on a connection that has already timed out.
ConnectionAborted
The connection was aborted by .NET or the underlying socket provider.
ConnectionReset
The connection was reset by the remote peer.
NoBufferSpaceAvailable
No free buffer space is available for a <see cref="T:System.Net.Sockets.Socket" /> operation.
IsConnected
The <see cref="T:System.Net.Sockets.Socket" /> is already connected.
NotConnected
The application tried to send or receive data, and the <see cref="T:System.Net.Sockets.Socket" /> is not connected.
Shutdown
A request to send or receive data was disallowed because the <see cref="T:System.Net.Sockets.Socket" /> has already been closed.
TimedOut
The connection attempt timed out, or the connected host has failed to respond.
ConnectionRefused
The remote host is actively refusing a connection.
HostDown
The operation failed because the remote host is down.
HostUnreachable
There is no network route to the specified host.
ProcessLimit
Too many processes are using the underlying socket provider.
SystemNotReady
The network subsystem is unavailable.
VersionNotSupported
The version of the underlying socket provider is out of range.
NotInitialized
The underlying socket provider has not been initialized.
Disconnecting
A graceful shutdown is in progress.
TypeNotFound
The specified class was not found.
HostNotFound
No such host is known. The name is not an official host name or alias.
TryAgain
The name of the host could not be resolved. Try again later.
NoRecovery
The error is unrecoverable or the requested database cannot be located.
NoData
The requested name or IP address was not found on the name server.