WSAError.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. using System.Diagnostics.CodeAnalysis;
  2. namespace Ryujinx.HLE.Utilities
  3. {
  4. [SuppressMessage("ReSharper", "InconsistentNaming")]
  5. enum WsaError
  6. {
  7. /*
  8. * All Windows Sockets error constants are biased by WSABASEERR from
  9. * the "normal"
  10. */
  11. WSABASEERR = 10000,
  12. /*
  13. * Windows Sockets definitions of regular Microsoft C error constants
  14. */
  15. WSAEINTR = (WSABASEERR + 4),
  16. WSAEBADF = (WSABASEERR + 9),
  17. WSAEACCES = (WSABASEERR + 13),
  18. WSAEFAULT = (WSABASEERR + 14),
  19. WSAEINVAL = (WSABASEERR + 22),
  20. WSAEMFILE = (WSABASEERR + 24),
  21. /*
  22. * Windows Sockets definitions of regular Berkeley error constants
  23. */
  24. WSAEWOULDBLOCK = (WSABASEERR + 35),
  25. WSAEINPROGRESS = (WSABASEERR + 36),
  26. WSAEALREADY = (WSABASEERR + 37),
  27. WSAENOTSOCK = (WSABASEERR + 38),
  28. WSAEDESTADDRREQ = (WSABASEERR + 39),
  29. WSAEMSGSIZE = (WSABASEERR + 40),
  30. WSAEPROTOTYPE = (WSABASEERR + 41),
  31. WSAENOPROTOOPT = (WSABASEERR + 42),
  32. WSAEPROTONOSUPPORT = (WSABASEERR + 43),
  33. WSAESOCKTNOSUPPORT = (WSABASEERR + 44),
  34. WSAEOPNOTSUPP = (WSABASEERR + 45),
  35. WSAEPFNOSUPPORT = (WSABASEERR + 46),
  36. WSAEAFNOSUPPORT = (WSABASEERR + 47),
  37. WSAEADDRINUSE = (WSABASEERR + 48),
  38. WSAEADDRNOTAVAIL = (WSABASEERR + 49),
  39. WSAENETDOWN = (WSABASEERR + 50),
  40. WSAENETUNREACH = (WSABASEERR + 51),
  41. WSAENETRESET = (WSABASEERR + 52),
  42. WSAECONNABORTED = (WSABASEERR + 53),
  43. WSAECONNRESET = (WSABASEERR + 54),
  44. WSAENOBUFS = (WSABASEERR + 55),
  45. WSAEISCONN = (WSABASEERR + 56),
  46. WSAENOTCONN = (WSABASEERR + 57),
  47. WSAESHUTDOWN = (WSABASEERR + 58),
  48. WSAETOOMANYREFS = (WSABASEERR + 59),
  49. WSAETIMEDOUT = (WSABASEERR + 60),
  50. WSAECONNREFUSED = (WSABASEERR + 61),
  51. WSAELOOP = (WSABASEERR + 62),
  52. WSAENAMETOOLONG = (WSABASEERR + 63),
  53. WSAEHOSTDOWN = (WSABASEERR + 64),
  54. WSAEHOSTUNREACH = (WSABASEERR + 65),
  55. WSAENOTEMPTY = (WSABASEERR + 66),
  56. WSAEPROCLIM = (WSABASEERR + 67),
  57. WSAEUSERS = (WSABASEERR + 68),
  58. WSAEDQUOT = (WSABASEERR + 69),
  59. WSAESTALE = (WSABASEERR + 70),
  60. WSAEREMOTE = (WSABASEERR + 71),
  61. /*
  62. * Extended Windows Sockets error constant definitions
  63. */
  64. WSASYSNOTREADY = (WSABASEERR + 91),
  65. WSAVERNOTSUPPORTED = (WSABASEERR + 92),
  66. WSANOTINITIALISED = (WSABASEERR + 93),
  67. WSAEDISCON = (WSABASEERR + 101),
  68. WSAENOMORE = (WSABASEERR + 102),
  69. WSAECANCELLED = (WSABASEERR + 103),
  70. WSAEINVALIDPROCTABLE = (WSABASEERR + 104),
  71. WSAEINVALIDPROVIDER = (WSABASEERR + 105),
  72. WSAEPROVIDERFAILEDINIT = (WSABASEERR + 106),
  73. WSASYSCALLFAILURE = (WSABASEERR + 107),
  74. WSASERVICE_NOT_FOUND = (WSABASEERR + 108),
  75. WSATYPE_NOT_FOUND = (WSABASEERR + 109),
  76. WSA_E_NO_MORE = (WSABASEERR + 110),
  77. WSA_E_CANCELLED = (WSABASEERR + 111),
  78. WSAEREFUSED = (WSABASEERR + 112),
  79. /*
  80. * Error return codes from gethostbyname() and gethostbyaddr()
  81. * (when using the resolver). Note that these errors are
  82. * retrieved via WSAGetLastError() and must therefore follow
  83. * the rules for avoiding clashes with error numbers from
  84. * specific implementations or language run-time systems.
  85. * For this reason the codes are based at WSABASEERR+1001.
  86. * Note also that [WSA]NO_ADDRESS is defined only for
  87. * compatibility purposes.
  88. */
  89. /* Authoritative Answer: Host not found */
  90. WSAHOST_NOT_FOUND = (WSABASEERR + 1001),
  91. /* Non-Authoritative: Host not found, or SERVERFAIL */
  92. WSATRY_AGAIN = (WSABASEERR + 1002),
  93. /* Non-recoverable errors, FORMERR, REFUSED, NOTIMP */
  94. WSANO_RECOVERY = (WSABASEERR + 1003),
  95. /* Valid name, no data record of requested type */
  96. WSANO_DATA = (WSABASEERR + 1004),
  97. /*
  98. * Define QOS related error return codes
  99. *
  100. */
  101. WSA_QOS_RECEIVERS = (WSABASEERR + 1005),
  102. /* at least one Reserve has arrived */
  103. WSA_QOS_SENDERS = (WSABASEERR + 1006),
  104. /* at least one Path has arrived */
  105. WSA_QOS_NO_SENDERS = (WSABASEERR + 1007),
  106. /* there are no senders */
  107. WSA_QOS_NO_RECEIVERS = (WSABASEERR + 1008),
  108. /* there are no receivers */
  109. WSA_QOS_REQUEST_CONFIRMED = (WSABASEERR + 1009),
  110. /* Reserve has been confirmed */
  111. WSA_QOS_ADMISSION_FAILURE = (WSABASEERR + 1010),
  112. /* error due to lack of resources */
  113. WSA_QOS_POLICY_FAILURE = (WSABASEERR + 1011),
  114. /* rejected for administrative reasons - bad credentials */
  115. WSA_QOS_BAD_STYLE = (WSABASEERR + 1012),
  116. /* unknown or conflicting style */
  117. WSA_QOS_BAD_OBJECT = (WSABASEERR + 1013),
  118. /* problem with some part of the filterspec or providerspecific
  119. * buffer in general */
  120. WSA_QOS_TRAFFIC_CTRL_ERROR = (WSABASEERR + 1014),
  121. /* problem with some part of the flowspec */
  122. WSA_QOS_GENERIC_ERROR = (WSABASEERR + 1015)
  123. }
  124. }