2018-11-28 22:18:09 +00:00
|
|
|
|
namespace Ryujinx.HLE.Utilities
|
2018-10-20 22:08:58 +00:00
|
|
|
|
{
|
2018-12-01 17:15:17 +00:00
|
|
|
|
internal enum WsaError
|
2018-10-20 22:08:58 +00:00
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
* All Windows Sockets error constants are biased by WSABASEERR from
|
|
|
|
|
* the "normal"
|
|
|
|
|
*/
|
2018-12-01 17:15:17 +00:00
|
|
|
|
BaseError = 10000,
|
2018-11-28 22:18:09 +00:00
|
|
|
|
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/*
|
|
|
|
|
* Windows Sockets definitions of regular Microsoft C error constants
|
|
|
|
|
*/
|
2018-12-01 17:15:17 +00:00
|
|
|
|
Interrupted = (BaseError + 4),
|
|
|
|
|
BadFileHandle = (BaseError + 9),
|
|
|
|
|
AccessDenied = (BaseError + 13),
|
|
|
|
|
Fault = (BaseError + 14),
|
|
|
|
|
InvalidArgument = (BaseError + 22),
|
|
|
|
|
TooManyOpenSockets = (BaseError + 24),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Windows Sockets definitions of regular Berkeley error constants
|
|
|
|
|
*/
|
2018-12-01 17:15:17 +00:00
|
|
|
|
WouldBlock = (BaseError + 35),
|
|
|
|
|
InProgress = (BaseError + 36),
|
|
|
|
|
AlreadyInProgress = (BaseError + 37),
|
|
|
|
|
NotSocket = (BaseError + 38),
|
|
|
|
|
DestinationAddressRequired = (BaseError + 39),
|
|
|
|
|
MessageSize = (BaseError + 40),
|
|
|
|
|
ProtocolType = (BaseError + 41),
|
|
|
|
|
ProtocolOption = (BaseError + 42),
|
|
|
|
|
ProtocolNotSupported = (BaseError + 43),
|
|
|
|
|
SocketNotSupported = (BaseError + 44),
|
|
|
|
|
OperationNotSupported = (BaseError + 45),
|
|
|
|
|
ProtocolFamilyNotSupported = (BaseError + 46),
|
|
|
|
|
AddressFamilyNotSupported = (BaseError + 47),
|
|
|
|
|
AddressAlreadyInUse = (BaseError + 48),
|
|
|
|
|
AddressNotAvailable = (BaseError + 49),
|
|
|
|
|
NetworkDown = (BaseError + 50),
|
|
|
|
|
NetworkUnreachable = (BaseError + 51),
|
|
|
|
|
NetworkReset = (BaseError + 52),
|
|
|
|
|
ConnectionAborted = (BaseError + 53),
|
|
|
|
|
ConnectionReset = (BaseError + 54),
|
|
|
|
|
NoBufferSpaceAvailable = (BaseError + 55),
|
|
|
|
|
IsConnected = (BaseError + 56),
|
|
|
|
|
NotConnected = (BaseError + 57),
|
|
|
|
|
Shutdown = (BaseError + 58),
|
|
|
|
|
TooManyReferences = (BaseError + 59),
|
|
|
|
|
TimedOut = (BaseError + 60),
|
|
|
|
|
ConnectionRefused = (BaseError + 61),
|
|
|
|
|
Loop = (BaseError + 62),
|
|
|
|
|
NameTooLong = (BaseError + 63),
|
|
|
|
|
HostDown = (BaseError + 64),
|
|
|
|
|
HostUnreachable = (BaseError + 65),
|
|
|
|
|
NotEmpty = (BaseError + 66),
|
|
|
|
|
ProcessLimit = (BaseError + 67),
|
|
|
|
|
UserQuota = (BaseError + 68),
|
|
|
|
|
DiskQuota = (BaseError + 69),
|
|
|
|
|
Stale = (BaseError + 70),
|
|
|
|
|
Remote = (BaseError + 71),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Extended Windows Sockets error constant definitions
|
|
|
|
|
*/
|
2018-12-01 17:15:17 +00:00
|
|
|
|
SystemNotReady = (BaseError + 91),
|
|
|
|
|
VersionNotSupported = (BaseError + 92),
|
|
|
|
|
NotInitialized = (BaseError + 93),
|
|
|
|
|
Disconnecting = (BaseError + 101),
|
|
|
|
|
NoMoreResultsOld = (BaseError + 102),
|
|
|
|
|
CancelledOld = (BaseError + 103),
|
|
|
|
|
InvalidProcedureCallTable = (BaseError + 104),
|
|
|
|
|
InvalidProvider = (BaseError + 105),
|
|
|
|
|
ProviderFailedInit = (BaseError + 106),
|
|
|
|
|
SysCallFailure = (BaseError + 107),
|
|
|
|
|
ServiceNotFound = (BaseError + 108),
|
|
|
|
|
TypeNotFound = (BaseError + 109),
|
|
|
|
|
NoMoreResults = (BaseError + 110),
|
|
|
|
|
Cancelled = (BaseError + 111),
|
|
|
|
|
Refused = (BaseError + 112),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Error return codes from gethostbyname() and gethostbyaddr()
|
|
|
|
|
* (when using the resolver). Note that these errors are
|
|
|
|
|
* retrieved via WSAGetLastError() and must therefore follow
|
|
|
|
|
* the rules for avoiding clashes with error numbers from
|
|
|
|
|
* specific implementations or language run-time systems.
|
|
|
|
|
* For this reason the codes are based at WSABASEERR+1001.
|
|
|
|
|
* Note also that [WSA]NO_ADDRESS is defined only for
|
|
|
|
|
* compatibility purposes.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* Authoritative Answer: Host not found */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
HostNotFound = (BaseError + 1001),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/* Non-Authoritative: Host not found, or SERVERFAIL */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
TryAgain = (BaseError + 1002),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/* Non-recoverable errors, FORMERR, REFUSED, NOTIMP */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
NoRecovery = (BaseError + 1003),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/* Valid name, no data record of requested type */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
NoData = (BaseError + 1004),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Define QOS related error return codes
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosReceivers = (BaseError + 1005),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* at least one Reserve has arrived */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosSenders = (BaseError + 1006),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* at least one Path has arrived */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosNoSenders = (BaseError + 1007),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* there are no senders */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosNoReceivers = (BaseError + 1008),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* there are no receivers */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosRequestConfirmed = (BaseError + 1009),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* Reserve has been confirmed */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosAdmissionFailure = (BaseError + 1010),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* error due to lack of resources */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosPolicyFailure = (BaseError + 1011),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* rejected for administrative reasons - bad credentials */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosBadStyle = (BaseError + 1012),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* unknown or conflicting style */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosBadObject = (BaseError + 1013),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* problem with some part of the filterspec or providerspecific
|
|
|
|
|
* buffer in general */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosTrafficCtrlError = (BaseError + 1014),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
/* problem with some part of the flowspec */
|
2018-12-01 17:15:17 +00:00
|
|
|
|
QosGenericError = (BaseError + 1015),
|
2018-10-20 22:08:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|