WSAError.cs 6.0 KB

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