forked from zeromq/clrzmq4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZSocketType.cs
88 lines (75 loc) · 1.7 KB
/
ZSocketType.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
namespace ZeroMQ
{
public enum ZSocketType : int
{
None = -1,
/// <summary>
/// Exclusive Pair
/// </summary>
PAIR,
/// <summary>
/// Publish
/// </summary>
PUB,
/// <summary>
/// Subscribe
/// </summary>
SUB,
/// <summary>
/// Request
/// </summary>
REQ,
/// <summary>
/// Reply / Response
/// </summary>
REP,
/// <summary>
/// Dealer
/// </summary>
DEALER,
/// <summary>
/// Router
/// </summary>
/// <remarks>
/// When receiving messages a <see cref="ROUTER"/> socket shall prepend a message
/// part containing the identity of the originating peer to the message before
/// passing it to the application. When sending messages a ZMQ_ROUTER socket shall remove
/// the first part of the message and use it to determine the identity of the peer the message
/// shall be routed to. If the peer does not exist anymore the message shall be silently discarded.
/// </remarks>
ROUTER,
/// <summary>
/// Pull
/// </summary>
PULL,
/// <summary>
/// Push
/// </summary>
PUSH,
/// <summary>
/// XPublisher
/// </summary>
/// <remarks>
/// Subscription message is a byte '1' (for subscriptions) or byte '0' (for unsubscriptions) followed by the subscription body.
/// </remarks>
XPUB,
/// <summary>
/// XSubscriber
/// </summary>
/// <remarks>
/// Subscription message is a byte '1' (for subscriptions) or byte '0' (for unsubscriptions) followed by the subscription body.
/// </remarks>
XSUB,
/// <summary>
/// Stream
/// </summary>
/// <remarks>
/// </remarks>
STREAM
}
}