Socket Status Error
Socket Status Error
Socket Status Error
Specifies status values for a socket operation.
public : enum class SocketErrorStatus
public enum SocketErrorStatus
Public Enum SocketErrorStatus
var value = Windows.Networking.Sockets.SocketErrorStatus.addressAlreadyInUse;
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
ID_CAP_NETWORKING [Windows Phone]
|AddressAlreadyInUse AddressAlreadyInUse AddressAlreadyInUse AddressAlreadyInUse||
The address is already in use.
|AddressFamilyNotSupported AddressFamilyNotSupported AddressFamilyNotSupported AddressFamilyNotSupported||
The address family is not supported.
|CannotAssignRequestedAddress CannotAssignRequestedAddress CannotAssignRequestedAddress CannotAssignRequestedAddress||
Cannot assign requested address.
|CertificateCommonNameIsIncorrect CertificateCommonNameIsIncorrect CertificateCommonNameIsIncorrect CertificateCommonNameIsIncorrect||
The certificate is not valid for the requested usage. This error is also returned if the certificate has an invalid name. The name is not included in the permitted list or is explicitly excluded.
|CertificateExpired CertificateExpired CertificateExpired CertificateExpired||
A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. This error is also returned if the validity periods of the certification chain do not nest correctly.
|CertificateIsInvalid CertificateIsInvalid CertificateIsInvalid CertificateIsInvalid||
The supplied certificate is invalid. This can be returned for a number of reasons:
|CertificateNoRevocationCheck CertificateNoRevocationCheck CertificateNoRevocationCheck CertificateNoRevocationCheck||
The revocation function was unable to check revocation for the certificate.
|CertificateRevocationServerOffline CertificateRevocationServerOffline CertificateRevocationServerOffline CertificateRevocationServerOffline||
The revocation function was unable to check revocation because the revocation server was offline.
|CertificateRevoked CertificateRevoked CertificateRevoked CertificateRevoked||
A certificate was explicitly revoked by its issuer. This error is also returned if the certificate was explicitly marked as untrusted by the user.
|CertificateUntrustedRoot CertificateUntrustedRoot CertificateUntrustedRoot CertificateUntrustedRoot||
A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. This error is also returned if a certificate chain could not be built to a trusted root authority.
|CertificateWrongUsage CertificateWrongUsage CertificateWrongUsage CertificateWrongUsage||
The certificate is not valid for the requested usage.
|ClassTypeNotFound ClassTypeNotFound ClassTypeNotFound ClassTypeNotFound||
The specified class was not found.
|ConnectionRefused ConnectionRefused ConnectionRefused ConnectionRefused||
The connection was refused.
|ConnectionResetByPeer ConnectionResetByPeer ConnectionResetByPeer ConnectionResetByPeer||
The connection was reset by the peer.
|ConnectionTimedOut ConnectionTimedOut ConnectionTimedOut ConnectionTimedOut||
A connection timeout was exceeded.
|HostIsDown HostIsDown HostIsDown HostIsDown||
The host is down.
|HostNotFound HostNotFound HostNotFound HostNotFound||
The host was not found.
|HttpInvalidServerResponse HttpInvalidServerResponse HttpInvalidServerResponse HttpInvalidServerResponse||
A bad response was received from the HTTP server.
|MessageTooLong MessageTooLong MessageTooLong MessageTooLong||
A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram was smaller than the datagram itself.
|NetworkDroppedConnectionOnReset NetworkDroppedConnectionOnReset NetworkDroppedConnectionOnReset NetworkDroppedConnectionOnReset||
The network dropped connection on reset.
|NetworkIsDown NetworkIsDown NetworkIsDown NetworkIsDown||
The network is down.
|NetworkIsUnreachable NetworkIsUnreachable NetworkIsUnreachable NetworkIsUnreachable||
The network is unreachable.
|NoAddressesFound NoAddressesFound NoAddressesFound NoAddressesFound||
The pipe is being closed.
|NoDataRecordOfRequestedType NoDataRecordOfRequestedType NoDataRecordOfRequestedType NoDataRecordOfRequestedType||
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for.
|NonAuthoritativeHostNotFound NonAuthoritativeHostNotFound NonAuthoritativeHostNotFound NonAuthoritativeHostNotFound||
This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
|OperationAborted OperationAborted OperationAborted OperationAborted||
The operation was aborted.
|SocketTypeNotSupported SocketTypeNotSupported SocketTypeNotSupported SocketTypeNotSupported||
The socket type is not supported.
|SoftwareCausedConnectionAbort SoftwareCausedConnectionAbort SoftwareCausedConnectionAbort SoftwareCausedConnectionAbort||
Software caused a connection abort.
|TooManyOpenFiles TooManyOpenFiles TooManyOpenFiles TooManyOpenFiles||
Too many open files.
|Unknown Unknown Unknown Unknown||
The socket status is unknown.
|UnreachableHost UnreachableHost UnreachableHost UnreachableHost||
The host is unreachable.
An error encountered on socket operation is returned as HRESULT value. The SocketError.GetStatus method is used to convert an error from a socket operation to a SocketErrorStatus enumeration value. Most of the SocketErrorStatus enumeration values correspond to an error returned by the native Windows sockets operation.