SocketError.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. #if NET_2_0
  30. namespace System.Net.Sockets
  31. {
  32. public enum SocketError
  33. {
  34. AccessDenied = 10013,
  35. AddressAlreadyInUse = 10048,
  36. AddressFamilyNotSupported = 10047,
  37. AddressNotAvailable = 10049,
  38. AlreadyInProgress = 10037,
  39. ConnectionAborted = 10053,
  40. ConnectionRefused = 10061,
  41. ConnectionReset = 10054,
  42. DestinationAddressRequired = 10039,
  43. Disconnecting = 10101,
  44. Fault = 10014,
  45. HostDown = 10064,
  46. HostNotFound = 11001,
  47. HostUnreachable = 10065,
  48. InProgress = 10036,
  49. Interrupted = 10004,
  50. InvalidArgument = 10022,
  51. IOPending = 997,
  52. IsConnected = 10056,
  53. MessageSize = 10040,
  54. NetworkDown = 10050,
  55. NetworkReset = 10052,
  56. NetworkUnreachable = 10051,
  57. NoBufferSpaceAvailable = 10055,
  58. NoData = 11004,
  59. NoRecovery = 11003,
  60. NotConnected = 10057,
  61. NotInitialized = 10093,
  62. NotSocket = 10038,
  63. OperationAborted = 995,
  64. OperationNotSupported = 10045,
  65. ProcessLimit = 10067,
  66. ProtocolFamilyNotSupported = 10046,
  67. ProtocolNotSupported = 10043,
  68. ProtocolOption = 10042,
  69. ProtocolType = 10041,
  70. Shutdown = 10058,
  71. SocketError = -1,
  72. SocketNotSupported = 10044,
  73. Success = 0,
  74. SystemNotReady = 10091,
  75. TimedOut = 10060,
  76. TooManyOpenSockets = 10024,
  77. TryAgain = 11002,
  78. TypeNotFound = 10109,
  79. VersionNotSupported = 10092,
  80. WouldBlock = 10035
  81. }
  82. }
  83. #endif