forked from zeromq/clrzmq4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZMonitorEvents.cs
71 lines (59 loc) · 1.79 KB
/
ZMonitorEvents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
namespace ZeroMQ.Monitoring
{
using System;
/// <summary>
/// Socket transport events (for TCP and IPC sockets) that can be monitored.
/// </summary>
[Flags]
public enum ZMonitorEvents
{
/// <summary>
/// Triggered when a connection has been established to a remote peer.
/// </summary>
Connected = 1,
/// <summary>
/// Triggered when an immediate connection attempt is delayed and it's completion is being polled for.
/// </summary>
ConnectDelayed = 2,
/// <summary>
/// Triggered when a connection attempt is being handled by reconnect timer. The reconnect interval is recomputed for each attempt.
/// </summary>
ConnectRetried = 4,
/// <summary>
/// Triggered when a socket is successfully bound to a an interface.
/// </summary>
Listening = 8,
/// <summary>
/// Triggered when a socket could not bind to a given interface.
/// </summary>
BindFailed = 16,
/// <summary>
/// Triggered when a connection from a remote peer has been established with a socket's listen address.
/// </summary>
Accepted = 32,
/// <summary>
/// Triggered when a connection attempt to a socket's bound address fails.
/// </summary>
AcceptFailed = 64,
/// <summary>
/// Triggered when a connection's underlying descriptor has been closed.
/// </summary>
Closed = 128,
/// <summary>
/// Triggered when a descriptor could not be released back to the OS.
/// </summary>
CloseFailed = 256,
/// <summary>
/// Triggered when the stream engine (tcp and ipc specific) detects a corrupted / broken session.
/// </summary>
Disconnected = 512,
/// <summary>
/// Monitoring on this socket ended.
/// </summary>
Stopped = 1024,
/// <summary>
/// Any <see cref="ZMonitorEvents"/> event, maybe readable from EventValue.
/// </summary>
AllEvents = 0xFFFF
}
}