CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
socket_error.h
1
2#pragma once
3
4#include <system/exceptions.h>
5#include <cstdint>
6
7namespace System {
8namespace Net {
9namespace Sockets {
10
12enum class SocketError
13{
15 Success = 0,
17 SocketError = -1,
19 Interrupted = 10004,
21 AccessDenied = 10013,
23 Fault = 10014,
25 InvalidArgument = 10022,
27 TooManyOpenSockets = 10024,
29 WouldBlock = 10035,
31 InProgress = 10036,
33 AlreadyInProgress = 10037,
35 NotSocket = 10038,
39 MessageSize = 10040,
41 ProtocolType = 10041,
43 ProtocolOption = 10042,
47 SocketNotSupported = 10044,
55 AddressAlreadyInUse = 10048,
57 AddressNotAvailable = 10049,
59 NetworkDown = 10050,
61 NetworkUnreachable = 10051,
63 NetworkReset = 10052,
65 ConnectionAborted = 10053,
67 ConnectionReset = 10054,
71 IsConnected = 10056,
73 NotConnected = 10057,
75 Shutdown = 10058,
77 TimedOut = 10060,
79 ConnectionRefused = 10061,
81 HostDown = 10064,
83 HostUnreachable = 10065,
85 ProcessLimit = 10067,
87 SystemNotReady = 10091,
89 VersionNotSupported = 10092,
91 NotInitialized = 10093,
93 Disconnecting = 10101,
95 TypeNotFound = 10109,
97 HostNotFound = 11001,
99 TryAgain = 11002,
101 NoRecovery = 11003,
103 NoData = 11004,
104};
105} // namespace Sockets
106} // namespace Net
107} // namespace System
SocketError
Enumerates the socket error types.
Definition: socket_error.h:13
@ NoRecovery
An error is unrecoverable or a requested database cannot be located.
@ SocketNotSupported
An address family doesn't support the specified socket.
@ Disconnecting
A graceful shutdown is in progress.
@ Interrupted
A blocking socket call is cancelled.
@ InProgress
A blocking operation is in progress.
@ ProtocolFamilyNotSupported
A protocol family is not implemented or not configured.
@ NotSocket
An attempt to call a socket operation on non-socket.
@ Shutdown
A request to send or receive data is forbidden because the socket has already been closed.
@ AddressFamilyNotSupported
The specified address family is not supported.
@ InvalidArgument
An invalid argument is provided.
@ ProtocolOption
An unknown, invalid, or unsupported option or level is used.
@ DestinationAddressRequired
A required address is omitted from a socket operation.
@ SystemNotReady
A network subsystem is unavailable.
@ Fault
An invalid pointer address is detected.
@ AddressNotAvailable
The selected IP address is not valid in this context.
@ NotConnected
An application tried to send or receive data, and a socket is not connected.
@ NoBufferSpaceAvailable
No free buffer space is available for a socket operation.
@ Success
A socket operation completed successfully.
@ ProcessLimit
Too many processes are using the underlying socket provider.
@ IsConnected
A socket is already connected.
@ HostDown
An operation failed because a remote host is down.
@ NetworkUnreachable
No route to the remote host exists.
@ AlreadyInProgress
A non-blocking socket already has a running operation.
@ MessageSize
A datagram is too long.
@ HostUnreachable
No network route to the specified host exists.
@ ProtocolNotSupported
A protocol is not implemented or not configured.
@ TimedOut
A connection attempt timed out, or a connected host has failed to respond.
@ NotInitialized
The underlying socket provider is not initialized.
@ NetworkReset
An application tried to set 'Keep-Alive' on a connection that has already timed out.
@ ConnectionRefused
A remote host is actively refusing a connection.
@ ConnectionReset
A connection is reset by a remote peer.
@ AddressAlreadyInUse
An address can be used only once.
@ AccessDenied
Access to a socket is denied.
@ NoData
A requested name or IP address is not found on the name server.
@ VersionNotSupported
A version of the underlying socket provider is out of range.
@ OperationNotSupported
A protocol family doesn't support an address family.
@ TypeNotFound
The specified class is not found.
@ NetworkDown
The network is not available.
@ WouldBlock
An operation cannot be immediately completed on a non-blocking socket.
@ ConnectionAborted
A connection is aborted.
@ TryAgain
A name of a host cannot be resolved.
@ HostNotFound
The specified host is unknown.
@ TooManyOpenSockets
There are too many open sockets in the underlying socket provider.
ProtocolType
Enumerates the protocol types.
Definition: protocol_type.h:12
Definition: db_command.h:9