ErrorCode.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. namespace NetMQ
  2. {
  3. /// <summary>
  4. /// This enum-type represents the various numeric socket-related error codes.
  5. /// </summary>
  6. public enum ErrorCode
  7. {
  8. /// <summary>
  9. /// The provided endpoint is not connected.
  10. /// </summary>
  11. EndpointNotFound = 2,
  12. /// <summary>
  13. /// The requested address is already in use.
  14. /// </summary>
  15. AddressAlreadyInUse = 48,
  16. /// <summary>
  17. /// Non-blocking mode was requested and the message cannot be sent at the moment.
  18. /// </summary>
  19. TryAgain = 35,
  20. /// <summary>
  21. /// Permission denied
  22. /// </summary>
  23. AccessDenied = 13,
  24. /// <summary>
  25. /// The endpoint supplied is invalid.
  26. /// </summary>
  27. Invalid = 22,
  28. /// <summary>
  29. /// The connection is still in progress.
  30. /// </summary>
  31. InProgress = 36,
  32. /// <summary>
  33. /// The requested transport protocol is not supported.
  34. /// </summary>
  35. ProtocolNotSupported = 43,
  36. /// <summary>
  37. /// The provided context is invalid.
  38. /// </summary>
  39. Fault = 14,
  40. /// <summary>
  41. /// The requested address was not available.
  42. /// For Bind operations, that can mean the address was not local.
  43. /// </summary>
  44. AddressNotAvailable = 49,
  45. /// <summary>
  46. /// The network appears to be down.
  47. /// </summary>
  48. NetworkDown = 50,
  49. /// <summary>
  50. /// There is not enough buffer space for the requested operation.
  51. /// </summary>
  52. NoBufferSpaceAvailable = 55,
  53. /// <summary>
  54. /// The socket is not connected.
  55. /// </summary>
  56. NotConnected = 57,
  57. /// <summary>
  58. /// The connection was refused.
  59. /// </summary>
  60. ConnectionRefused = 61,
  61. /// <summary>
  62. /// The host is not reachable.
  63. /// </summary>
  64. HostUnreachable = 65,
  65. /// <summary>
  66. /// This is the value chosen for beginning the range of 0MQ error codes.
  67. /// </summary>
  68. BaseErrorNumber = 156384712,
  69. /// <summary>
  70. /// The message is too long.
  71. /// </summary>
  72. MessageSize = BaseErrorNumber + 10,
  73. /// <summary>
  74. /// The address family is not supported by this protocol.
  75. /// </summary>
  76. AddressFamilyNotSupported = BaseErrorNumber + 11,
  77. /// <summary>
  78. /// The network is apparently not reachable.
  79. /// </summary>
  80. NetworkUnreachable = BaseErrorNumber + 12,
  81. /// <summary>
  82. /// The connection-attempt has apparently been aborted.
  83. /// </summary>
  84. ConnectionAborted = BaseErrorNumber + 13,
  85. /// <summary>
  86. /// The connection has apparently been reset.
  87. /// </summary>
  88. ConnectionReset = BaseErrorNumber + 14,
  89. /// <summary>
  90. /// The operation timed-out.
  91. /// </summary>
  92. TimedOut = BaseErrorNumber + 16,
  93. /// <summary>
  94. /// The connection has apparently been reset.
  95. /// </summary>
  96. NetworkReset = BaseErrorNumber + 18,
  97. /// <summary>
  98. /// The operation cannot be performed on this socket at the moment due
  99. /// to the socket not being in the appropriate state.
  100. /// </summary>
  101. FiniteStateMachine = BaseErrorNumber + 51,
  102. /// <summary>
  103. /// The context associated with the specified socket has already been terminated.
  104. /// </summary>
  105. ContextTerminated = BaseErrorNumber + 53,
  106. /// <summary>
  107. /// No I/O thread is available to accomplish this task.
  108. /// </summary>
  109. EmptyThread = BaseErrorNumber + 54,
  110. /// <summary>
  111. /// Too many sockets for this process.
  112. /// </summary>
  113. TooManyOpenSockets = BaseErrorNumber + 107
  114. }
  115. }