-
Notifications
You must be signed in to change notification settings - Fork 119
/
api.php
333 lines (332 loc) · 7.86 KB
/
api.php
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<?php
/**
* zmq-API v@PACKAGE_VERSION@ Docs build by DocThor [2020-03-15]
* @package zmq
*/
/**
* @package zmq
*/
class ZMQ {
const SOCKET_PAIR = 0;
const SOCKET_PUB = 1;
const SOCKET_SUB = 2;
const SOCKET_REQ = 3;
const SOCKET_REP = 4;
const SOCKET_XREQ = 5;
const SOCKET_XREP = 6;
const SOCKET_PUSH = 8;
const SOCKET_PULL = 7;
const SOCKET_DEALER = 5;
const SOCKET_ROUTER = 6;
const SOCKET_XSUB = 10;
const SOCKET_XPUB = 9;
const SOCKET_STREAM = 11;
const SOCKET_UPSTREAM = 7;
const SOCKET_DOWNSTREAM = 8;
const POLL_IN = 1;
const POLL_OUT = 2;
const MODE_SNDMORE = 2;
const MODE_NOBLOCK = 1;
const MODE_DONTWAIT = 1;
const ERR_INTERNAL = -99;
const ERR_EAGAIN = 11;
const ERR_ENOTSUP = 95;
const ERR_EFSM = 156384763;
const ERR_ETERM = 156384765;
const LIBZMQ_VER = '4.1.7';
const LIBZMQ_VERSION = '4.1.7';
const LIBZMQ_VERSION_ID = 40107;
const LIBZMQ_VERSION_MAJOR = 4;
const LIBZMQ_VERSION_MINOR = 1;
const LIBZMQ_VERSION_PATCH = 7;
const SOCKOPT_TOS = 57;
const SOCKOPT_ROUTER_HANDOVER = 56;
const SOCKOPT_CONNECT_RID = 61;
const SOCKOPT_HANDSHAKE_IVL = 66;
const SOCKOPT_SOCKS_PROXY = 68;
const SOCKOPT_XPUB_NODROP = 69;
const SOCKOPT_ROUTER_MANDATORY = 33;
const SOCKOPT_PROBE_ROUTER = 51;
const SOCKOPT_REQ_RELAXED = 53;
const SOCKOPT_REQ_CORRELATE = 52;
const SOCKOPT_CONFLATE = 54;
const SOCKOPT_ZAP_DOMAIN = 55;
const SOCKOPT_MECHANISM = 43;
const SOCKOPT_PLAIN_SERVER = 44;
const SOCKOPT_PLAIN_USERNAME = 45;
const SOCKOPT_PLAIN_PASSWORD = 46;
const SOCKOPT_CURVE_SERVER = 47;
const SOCKOPT_CURVE_PUBLICKEY = 48;
const SOCKOPT_CURVE_SECRETKEY = 49;
const SOCKOPT_CURVE_SERVERKEY = 50;
const SOCKOPT_GSSAPI_SERVER = 62;
const SOCKOPT_GSSAPI_PLAINTEXT = 65;
const SOCKOPT_GSSAPI_PRINCIPAL = 63;
const SOCKOPT_GSSAPI_SERVICE_PRINCIPAL = 64;
const SOCKOPT_IPV6 = 42;
const SOCKOPT_IMMEDIATE = 39;
const SOCKOPT_SNDHWM = 23;
const SOCKOPT_RCVHWM = 24;
const SOCKOPT_MAXMSGSIZE = 22;
const SOCKOPT_MULTICAST_HOPS = 25;
const SOCKOPT_XPUB_VERBOSE = 40;
const SOCKOPT_TCP_KEEPALIVE = 34;
const SOCKOPT_TCP_KEEPALIVE_IDLE = 36;
const SOCKOPT_TCP_KEEPALIVE_CNT = 35;
const SOCKOPT_TCP_KEEPALIVE_INTVL = 37;
const SOCKOPT_TCP_ACCEPT_FILTER = 38;
const SOCKOPT_LAST_ENDPOINT = 32;
const SOCKOPT_ROUTER_RAW = 41;
const SOCKOPT_IPV4ONLY = 31;
const SOCKOPT_DELAY_ATTACH_ON_CONNECT = 39;
const SOCKOPT_HWM = 2001;
const SOCKOPT_AFFINITY = 4;
const SOCKOPT_IDENTITY = 5;
const SOCKOPT_RATE = 8;
const SOCKOPT_RECOVERY_IVL = 9;
const SOCKOPT_RCVTIMEO = 27;
const SOCKOPT_SNDTIMEO = 28;
const SOCKOPT_SNDBUF = 11;
const SOCKOPT_RCVBUF = 12;
const SOCKOPT_LINGER = 17;
const SOCKOPT_RECONNECT_IVL = 18;
const SOCKOPT_RECONNECT_IVL_MAX = 21;
const SOCKOPT_BACKLOG = 19;
const SOCKOPT_SUBSCRIBE = 6;
const SOCKOPT_UNSUBSCRIBE = 7;
const SOCKOPT_TYPE = 16;
const SOCKOPT_RCVMORE = 13;
const SOCKOPT_FD = 14;
const SOCKOPT_EVENTS = 15;
const CTXOPT_MAX_SOCKETS = 2;
const CTXOPT_MAX_SOCKETS_DEFAULT = 1023;
const EVENT_CONNECTED = 1;
const EVENT_CONNECT_DELAYED = 2;
const EVENT_CONNECT_RETRIED = 4;
const EVENT_LISTENING = 8;
const EVENT_BIND_FAILED = 16;
const EVENT_ACCEPTED = 32;
const EVENT_ACCEPT_FAILED = 64;
const EVENT_CLOSED = 128;
const EVENT_CLOSE_FAILED = 256;
const EVENT_DISCONNECTED = 512;
const EVENT_MONITOR_STOPPED = 1024;
const EVENT_ALL = 65535;
/**
* A monotonic clock
*
* @return integer
*/
public function clock() {}
public function z85encode($data) {}
public function z85decode($data) {}
public function curvekeypair() {}
}
/**
* @package zmq
*/
class ZMQContext {
/**
* Build a new ZMQContext object
*
* @param integer $io_threads
* @param boolean $is_persistent
* @return ZMQContext
*/
public function __construct($io_threads="", $persistent="") {}
/**
* Acquires a handle to the request global context
*
* @return ZMQContext
*/
public function acquire() {}
public function getsocketcount() {}
public function getsocket($type, $dsn, $on_new_socket="") {}
public function ispersistent() {}
/**
* Set a context option
*
* @param int $option
* @param int $value
* @return ZMQContext
*/
public function setOpt($option, $value) {}
/**
* Set a context option
*
* @param int $option
* @return ZMQContext
*/
public function getOpt($option) {}
}
/**
* @package zmq
*/
class ZMQSocket {
/**
* Build a new ZMQSocket object
*
* @param ZMQContext $context
* @param integer $type
* @param string $persistent_id
* @param callback $on_new_socket
* @return ZMQSocket
*/
public function __construct(ZMQContext $ZMQContext, $type, $persistent_id="", $on_new_socket="") {}
/**
* Send a message. Return true if message was sent and false on EAGAIN
*
* @param string $message
* @param integer $flags
* @return ZMQSocket
*/
public function send($message, $mode="") {}
public function recv($mode="") {}
/**
* Send a multipart message. Return true if message was sent and false on EAGAIN
*
* @param arrays $messages
* @param integer $flags
* @return ZMQSocket
*/
public function sendmulti($message, $mode="") {}
public function recvmulti($mode="") {}
/**
* Bind the socket to an endpoint
*
* @param string $dsn
* @param boolean $force
* @return ZMQSocket
*/
public function bind($dsn, $force="") {}
/**
* Connect the socket to an endpoint
*
* @param string $dsn
* @param boolean $force
* @return ZMQSocket
*/
public function connect($dsn, $force="") {}
public function monitor($dsn, $events="") {}
public function recvevent($flags="") {}
/**
* Unbind the socket from an endpoint
*
* @param string $dsn
* @return ZMQSocket
*/
public function unbind($dsn) {}
/**
* Disconnect the socket from an endpoint
*
* @param string $dsn
* @return ZMQSocket
*/
public function disconnect($dsn) {}
public function setsockopt($key, $value) {}
public function getendpoints() {}
public function getsockettype() {}
public function ispersistent() {}
public function getpersistentid() {}
public function getsockopt($key) {}
public function sendmsg($message, $mode="") {}
public function recvmsg($mode="") {}
}
/**
* @package zmq
*/
class ZMQPoll {
/**
* Add a ZMQSocket object into the pollset
*
* @param ZMQSocket $object
* @param integer $events
* @return integer
*/
public function add($entry, $type) {}
/**
* Poll the sockets
*
* @param array $readable
* @param array $writable
* @param integer $timeout
* @return integer
*/
public function poll(&$readable, &$writable, $timeout="") {}
public function getlasterrors() {}
/**
* Remove item from poll set
*
* @param mixed $item
* @return boolean
*/
public function remove($remove) {}
/**
* Returns the number of items in the set
*
* @return integer
*/
public function count() {}
/**
* Clear the pollset
*
* @return ZMQPoll
*/
public function clear() {}
/**
* Clear the pollset
*
* @return array
*/
public function items() {}
}
/**
* @package zmq
*/
class ZMQDevice {
/**
* Construct a device
*
* @param ZMQSocket $frontend
* @param ZMQSocket $backend
* @return void
*/
public function __construct(ZMQSocket $frontend, ZMQSocket $backend, ZMQSocket $capture="") {}
/**
* Start a device
*
* @return void
*/
public function run() {}
public function setidlecallback($idle_callback, $timeout, $user_data="") {}
public function setidletimeout($timeout) {}
public function getidletimeout() {}
public function settimercallback($idle_callback, $timeout, $user_data="") {}
public function settimertimeout($timeout) {}
public function gettimertimeout() {}
}
/**
* @package zmq
*/
class ZMQException extends Exception {
}
/**
* @package zmq
*/
class ZMQContextException extends ZMQException {
}
/**
* @package zmq
*/
class ZMQSocketException extends ZMQException {
}
/**
* @package zmq
*/
class ZMQPollException extends ZMQException {
}
/**
* @package zmq
*/
class ZMQDeviceException extends ZMQException {
}