SocketEvents.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. namespace NetMQ
  3. {
  4. /// <summary>
  5. /// This enum-type specifies socket transport events (TCP and IPC only).
  6. /// </summary>
  7. [Flags]
  8. public enum SocketEvents
  9. {
  10. /// <summary>
  11. /// Socket got connected
  12. /// </summary>
  13. Connected = 1,
  14. /// <summary>
  15. /// Connect delayed
  16. /// </summary>
  17. ConnectDelayed = 2,
  18. /// <summary>
  19. /// Connect Retried
  20. /// </summary>
  21. ConnectRetried = 4,
  22. /// <summary>
  23. /// Socket is listening
  24. /// </summary>
  25. Listening = 8,
  26. /// <summary>
  27. /// Socket bind failed
  28. /// </summary>
  29. BindFailed = 16,
  30. /// <summary>
  31. /// Peer is accepted
  32. /// </summary>
  33. Accepted = 32,
  34. /// <summary>
  35. /// Accept failed
  36. /// </summary>
  37. AcceptFailed = 64,
  38. /// <summary>
  39. /// Socket is closed
  40. /// </summary>
  41. Closed = 128,
  42. /// <summary>
  43. /// Failed to close socket
  44. /// </summary>
  45. CloseFailed = 256,
  46. /// <summary>
  47. /// Socket disconnected
  48. /// </summary>
  49. Disconnected = 512,
  50. /// <summary>
  51. /// Listen to all events
  52. /// </summary>
  53. All = Connected | ConnectDelayed |
  54. ConnectRetried | Listening |
  55. BindFailed | Accepted |
  56. AcceptFailed | Closed |
  57. CloseFailed | Disconnected
  58. }
  59. }