Indicates the type of error that occurred when a socket operation failed.
public enum SocketError
The socket operation completed successfully.
Success = 0
The connection was aborted by the remote host.
ConnectionAborted = 10053
The connection was refused by the remote host.
ConnectionRefused = 10061
The connection was reset by the remote host.
ConnectionReset = 10054
The remote host is unreachable.
HostDown = 11004
The remote host was not found.
HostNotFound = 11001
One or more arguments are invalid.
InvalidArgument = 10022
The network is unavailable.
NetworkDown = 11002
The network is unreachable.
NetworkUnreachable = 10051
No buffer space is available.
NoBufferSpaceAvailable = 10055
The socket operation was canceled.
OperationAborted = 995
The socket operation timed out.
TimedOut = 10060
The operation would block.
WouldBlock = 10035
The SocketError enumeration is used to report errors that occur during socket operations. Most of these error codes correspond to standard Winsock error codes.