SocketError.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // System.Net.Sockets.SocketError.cs
  3. //
  4. // Author:
  5. // Robert Jordan <[email protected]>
  6. //
  7. // Copyright (C) 2005 Novell, Inc. (http://www.novell.com)
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. namespace System.Net.Sockets
  30. {
  31. #if NET_2_0
  32. public
  33. #else
  34. internal
  35. #endif
  36. enum SocketError
  37. {
  38. AccessDenied = 10013,
  39. AddressAlreadyInUse = 10048,
  40. AddressFamilyNotSupported = 10047,
  41. AddressNotAvailable = 10049,
  42. AlreadyInProgress = 10037,
  43. ConnectionAborted = 10053,
  44. ConnectionRefused = 10061,
  45. ConnectionReset = 10054,
  46. DestinationAddressRequired = 10039,
  47. Disconnecting = 10101,
  48. Fault = 10014,
  49. HostDown = 10064,
  50. HostNotFound = 11001,
  51. HostUnreachable = 10065,
  52. InProgress = 10036,
  53. Interrupted = 10004,
  54. InvalidArgument = 10022,
  55. IOPending = 997,
  56. IsConnected = 10056,
  57. MessageSize = 10040,
  58. NetworkDown = 10050,
  59. NetworkReset = 10052,
  60. NetworkUnreachable = 10051,
  61. NoBufferSpaceAvailable = 10055,
  62. NoData = 11004,
  63. NoRecovery = 11003,
  64. NotConnected = 10057,
  65. NotInitialized = 10093,
  66. NotSocket = 10038,
  67. OperationAborted = 995,
  68. OperationNotSupported = 10045,
  69. ProcessLimit = 10067,
  70. ProtocolFamilyNotSupported = 10046,
  71. ProtocolNotSupported = 10043,
  72. ProtocolOption = 10042,
  73. ProtocolType = 10041,
  74. Shutdown = 10058,
  75. SocketError = -1,
  76. SocketNotSupported = 10044,
  77. Success = 0,
  78. SystemNotReady = 10091,
  79. TimedOut = 10060,
  80. TooManyOpenSockets = 10024,
  81. TryAgain = 11002,
  82. TypeNotFound = 10109,
  83. VersionNotSupported = 10092,
  84. WouldBlock = 10035
  85. }
  86. }