SocketError SocketError SocketError SocketError Enum

Definición

Define códigos de error para la clase Socket.Defines error codes for the Socket class.

public enum class SocketError
public enum SocketError
type SocketError = 
Public Enum SocketError
Herencia

Campos

AccessDenied AccessDenied AccessDenied AccessDenied 10013

Se intentó obtener acceso a un Socket de una manera prohibida por sus permisos de acceso.An attempt was made to access a Socket in a way that is forbidden by its access permissions.

AddressAlreadyInUse AddressAlreadyInUse AddressAlreadyInUse AddressAlreadyInUse 10048

Normalmente se permite un solo uso de una dirección.Only one use of an address is normally permitted.

AddressFamilyNotSupported AddressFamilyNotSupported AddressFamilyNotSupported AddressFamilyNotSupported 10047

No admite la familia de direcciones especificada.The address family specified is not supported. Se devuelve este error si se especificó la familia de direcciones IPv6 y la pila del IPv6 no está instalada en el equipo local.This error is returned if the IPv6 address family was specified and the IPv6 stack is not installed on the local machine. Se devuelve este error si se especificó la familia de direcciones IPv4 y la pila del IPv4 no está instalada en el equipo local.This error is returned if the IPv4 address family was specified and the IPv4 stack is not installed on the local machine.

AddressNotAvailable AddressNotAvailable AddressNotAvailable AddressNotAvailable 10049

La dirección IP seleccionada no es válida en este contexto.The selected IP address is not valid in this context.

AlreadyInProgress AlreadyInProgress AlreadyInProgress AlreadyInProgress 10037

El Socket de no bloqueo ya tiene una operación en curso.The nonblocking Socket already has an operation in progress.

ConnectionAborted ConnectionAborted ConnectionAborted ConnectionAborted 10053

.NET Framework o el proveedor de sockets subyacentes anuló la conexión.The connection was aborted by the .NET Framework or the underlying socket provider.

ConnectionRefused ConnectionRefused ConnectionRefused ConnectionRefused 10061

El host remoto rechaza activamente una conexión.The remote host is actively refusing a connection.

ConnectionReset ConnectionReset ConnectionReset ConnectionReset 10054

El interlocutor remoto restableció la conexión.The connection was reset by the remote peer.

DestinationAddressRequired DestinationAddressRequired DestinationAddressRequired DestinationAddressRequired 10039

Se ha omitido una dirección necesaria de una operación en un Socket.A required address was omitted from an operation on a Socket.

Disconnecting Disconnecting Disconnecting Disconnecting 10101

Se está realizando correctamente una desconexión.A graceful shutdown is in progress.

Fault Fault Fault Fault 10014

El proveedor de sockets subyacentes detectó una dirección de puntero no válida.An invalid pointer address was detected by the underlying socket provider.

HostDown HostDown HostDown HostDown 10064

Se ha generado un error en la operación porque el host remoto está inactivo.The operation failed because the remote host is down.

HostNotFound HostNotFound HostNotFound HostNotFound 11001

Se desconoce el host.No such host is known. El nombre no es un nombre de host o alias oficial.The name is not an official host name or alias.

HostUnreachable HostUnreachable HostUnreachable HostUnreachable 10065

No hay ninguna ruta de red al host especificado.There is no network route to the specified host.

InProgress InProgress InProgress InProgress 10036

Hay una operación de bloqueo en curso.A blocking operation is in progress.

Interrupted Interrupted Interrupted Interrupted 10004

Se canceló una llamada Socket de bloqueo.A blocking Socket call was canceled.

InvalidArgument InvalidArgument InvalidArgument InvalidArgument 10022

Se ha proporcionado un argumento no válido a un miembro de Socket.An invalid argument was supplied to a Socket member.

IOPending IOPending IOPending IOPending 997

La aplicación ha iniciado una operación superpuesta que no se puede finalizar inmediatamente.The application has initiated an overlapped operation that cannot be completed immediately.

IsConnected IsConnected IsConnected IsConnected 10056

El Socket ya está conectado.The Socket is already connected.

MessageSize MessageSize MessageSize MessageSize 10040

El datagrama es demasiado largo.The datagram is too long.

NetworkDown NetworkDown NetworkDown NetworkDown 10050

La red no está disponible.The network is not available.

NetworkReset NetworkReset NetworkReset NetworkReset 10052

La aplicación intentó establecer KeepAlive en una conexión cuyo tiempo de espera ya está agotado.The application tried to set KeepAlive on a connection that has already timed out.

NetworkUnreachable NetworkUnreachable NetworkUnreachable NetworkUnreachable 10051

No existe ninguna ruta al host remoto.No route to the remote host exists.

NoBufferSpaceAvailable NoBufferSpaceAvailable NoBufferSpaceAvailable NoBufferSpaceAvailable 10055

No hay espacio en búfer disponible para una operación de Socket.No free buffer space is available for a Socket operation.

NoData NoData NoData NoData 11004

No se encontró el nombre o la dirección IP solicitada en el servidor de nombres.The requested name or IP address was not found on the name server.

NoRecovery NoRecovery NoRecovery NoRecovery 11003

El error es irrecuperable o no se encuentra la base de datos solicitada.The error is unrecoverable or the requested database cannot be located.

NotConnected NotConnected NotConnected NotConnected 10057

La aplicación intentó enviar o recibir datos y el Socket no está conectado.The application tried to send or receive data, and the Socket is not connected.

NotInitialized NotInitialized NotInitialized NotInitialized 10093

No se ha inicializado el proveedor de sockets subyacentes.The underlying socket provider has not been initialized.

NotSocket NotSocket NotSocket NotSocket 10038

Se intentó realizar una operación de Socket en algo que no es un socket.A Socket operation was attempted on a non-socket.

OperationAborted OperationAborted OperationAborted OperationAborted 995

La operación superpuesta se anuló debido al cierre del Socket.The overlapped operation was aborted due to the closure of the Socket.

OperationNotSupported OperationNotSupported OperationNotSupported OperationNotSupported 10045

La familia de protocolos no admite la familia de direcciones.The address family is not supported by the protocol family.

ProcessLimit ProcessLimit ProcessLimit ProcessLimit 10067

Demasiados procesos están utilizando el proveedor de sockets subyacentes.Too many processes are using the underlying socket provider.

ProtocolFamilyNotSupported ProtocolFamilyNotSupported ProtocolFamilyNotSupported ProtocolFamilyNotSupported 10046

La familia de protocolos no está implementada o no está configurada.The protocol family is not implemented or has not been configured.

ProtocolNotSupported ProtocolNotSupported ProtocolNotSupported ProtocolNotSupported 10043

El protocolo no está implementado o no está configurado.The protocol is not implemented or has not been configured.

ProtocolOption ProtocolOption ProtocolOption ProtocolOption 10042

Se ha utilizado una opción o un nivel desconocido, no válido o incompatible con un Socket.An unknown, invalid, or unsupported option or level was used with a Socket.

ProtocolType ProtocolType ProtocolType ProtocolType 10041

El tipo de protocolo es incorrecto para este Socket.The protocol type is incorrect for this Socket.

Shutdown Shutdown Shutdown Shutdown 10058

Se denegó una solicitud de envío o recepción de datos porque ya se ha cerrado el Socket.A request to send or receive data was disallowed because the Socket has already been closed.

SocketError SocketError SocketError -1

Se ha producido un error de Socket no especificado.An unspecified Socket error has occurred.

SocketNotSupported SocketNotSupported SocketNotSupported SocketNotSupported 10044

Esta familia de direcciones no es compatible con el tipo de socket especificado.The support for the specified socket type does not exist in this address family.

Success Success Success Success 0

La operación de Socket se ha realizado correctamente.The Socket operation succeeded.

SystemNotReady SystemNotReady SystemNotReady SystemNotReady 10091

El subsistema de red no está disponible.The network subsystem is unavailable.

TimedOut TimedOut TimedOut TimedOut 10060

El intento de conexión ha sobrepasado el tiempo de espera o el host conectado no ha respondido.The connection attempt timed out, or the connected host has failed to respond.

TooManyOpenSockets TooManyOpenSockets TooManyOpenSockets TooManyOpenSockets 10024

Hay demasiados sockets abiertos en el proveedor de sockets subyacentes.There are too many open sockets in the underlying socket provider.

TryAgain TryAgain TryAgain TryAgain 11002

No se pudo resolver el nombre del host.The name of the host could not be resolved. Vuelva a intentarlo más tarde.Try again later.

TypeNotFound TypeNotFound TypeNotFound TypeNotFound 10109

No se encontró la clase especificada.The specified class was not found.

VersionNotSupported VersionNotSupported VersionNotSupported VersionNotSupported 10092

La versión del proveedor de sockets subyacentes está fuera del intervalo.The version of the underlying socket provider is out of range.

WouldBlock WouldBlock WouldBlock WouldBlock 10035

No se puede finalizar inmediatamente una operación en un socket de no bloqueo.An operation on a nonblocking socket cannot be completed immediately.

Comentarios

La mayoría de estos errores se devuelve por el proveedor de sockets subyacentes.Most of these errors are returned by the underlying socket provider.

Se aplica a