-
Notifications
You must be signed in to change notification settings - Fork 58
/
constants.jl
80 lines (65 loc) · 2.07 KB
/
constants.jl
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
## Constants
# Context options
const IO_THREADS = lib.ZMQ_IO_THREADS
const MAX_SOCKETS = lib.ZMQ_MAX_SOCKETS
const IPV6 = lib.ZMQ_IPV6
"[PAIR](https://zeromq.org/socket-api/#pair-socket) socket."
const PAIR = lib.ZMQ_PAIR
"[PUB](https://zeromq.org/socket-api/#pub-socket) socket."
const PUB = lib.ZMQ_PUB
"[SUB](https://zeromq.org/socket-api/#sub-socket) socket."
const SUB = lib.ZMQ_SUB
"[REQ](https://zeromq.org/socket-api/#req-socket) socket."
const REQ = lib.ZMQ_REQ
"[REP](https://zeromq.org/socket-api/#rep-socket) socket."
const REP = lib.ZMQ_REP
"[DEALER](https://zeromq.org/socket-api/#dealer-socket) socket."
const DEALER = lib.ZMQ_DEALER
"[ROUTER](https://zeromq.org/socket-api/#router-socket) socket."
const ROUTER = lib.ZMQ_ROUTER
"[PULL](https://zeromq.org/socket-api/#pull-socket) socket."
const PULL = lib.ZMQ_PULL
"[PUSH](https://zeromq.org/socket-api/#push-socket) socket."
const PUSH = lib.ZMQ_PUSH
"[XPUB](https://zeromq.org/socket-api/#xpub-socket) socket."
const XPUB = lib.ZMQ_XPUB
"[XSUB](https://zeromq.org/socket-api/#xsub-socket) socket."
const XSUB = lib.ZMQ_XSUB
"""
[XREQ](https://zeromq.org/socket-api/#dealer-socket) socket.
!!! compat
This is a deprecated alias for [ZMQ.DEALER](@ref).
"""
const XREQ = DEALER
"""
[XREP](https://zeromq.org/socket-api/#router-socket) socket.
!!! compat
This is a deprecated alias for [ZMQ.ROUTER](@ref).
"""
const XREP = ROUTER
"""
[UPSTREAM](https://zeromq.org/socket-api/#pull-socket) socket.
!!! compat
This is a deprecated alias for [ZMQ.PULL](@ref).
"""
const UPSTREAM = PULL
"""
[DOWNSTREAM](https://zeromq.org/socket-api/#push-socket) socket.
!!! compat
This is a deprecated alias for [ZMQ.PUSH](@ref).
"""
const DOWNSTREAM = PUSH
#Message options
const MORE = lib.ZMQ_MORE
const SNDMORE = true
#IO Multiplexing
const POLLIN = lib.ZMQ_POLLIN
const POLLOUT = lib.ZMQ_POLLOUT
const POLLERR = lib.ZMQ_POLLERR
#Built in devices
const STREAMER = lib.ZMQ_STREAMER
const FORWARDER = lib.ZMQ_FORWARDER
const QUEUE = lib.ZMQ_QUEUE
#Send/Recv Options
const ZMQ_DONTWAIT = lib.ZMQ_DONTWAIT
const ZMQ_SNDMORE = lib.ZMQ_SNDMORE