1
1
<?php
2
2
/**
3
- * zmq-API v@PACKAGE_VERSION@ Docs build by DocThor [2016 -02-01 ]
3
+ * zmq-API v@PACKAGE_VERSION@ Docs build by DocThor [2020 -02-16 ]
4
4
* @package zmq
5
5
*/
6
6
@@ -30,18 +30,22 @@ class ZMQ {
30
30
const MODE_NOBLOCK = 1 ;
31
31
const MODE_DONTWAIT = 1 ;
32
32
const ERR_INTERNAL = -99 ;
33
- const ERR_EAGAIN = 35 ;
34
- const ERR_ENOTSUP = 45 ;
33
+ const ERR_EAGAIN = 11 ;
34
+ const ERR_ENOTSUP = 95 ;
35
35
const ERR_EFSM = 156384763 ;
36
36
const ERR_ETERM = 156384765 ;
37
- const LIBZMQ_VER = '4.1.4 ' ;
38
- const LIBZMQ_VERSION = '4.1.4 ' ;
39
- const LIBZMQ_VERSION_ID = 40104 ;
37
+ const LIBZMQ_VER = '4.1.7 ' ;
38
+ const LIBZMQ_VERSION = '4.1.7 ' ;
39
+ const LIBZMQ_VERSION_ID = 40107 ;
40
40
const LIBZMQ_VERSION_MAJOR = 4 ;
41
41
const LIBZMQ_VERSION_MINOR = 1 ;
42
- const LIBZMQ_VERSION_PATCH = 4 ;
42
+ const LIBZMQ_VERSION_PATCH = 7 ;
43
43
const SOCKOPT_TOS = 57 ;
44
44
const SOCKOPT_ROUTER_HANDOVER = 56 ;
45
+ const SOCKOPT_CONNECT_RID = 61 ;
46
+ const SOCKOPT_HANDSHAKE_IVL = 66 ;
47
+ const SOCKOPT_SOCKS_PROXY = 68 ;
48
+ const SOCKOPT_XPUB_NODROP = 69 ;
45
49
const SOCKOPT_ROUTER_MANDATORY = 33 ;
46
50
const SOCKOPT_PROBE_ROUTER = 51 ;
47
51
const SOCKOPT_REQ_RELAXED = 53 ;
@@ -109,6 +113,11 @@ class ZMQ {
109
113
const EVENT_DISCONNECTED = 512 ;
110
114
const EVENT_MONITOR_STOPPED = 1024 ;
111
115
const EVENT_ALL = 65535 ;
116
+ /**
117
+ * A monotonic clock
118
+ *
119
+ * @return integer
120
+ */
112
121
public function clock () {}
113
122
public function z85encode ($ data ) {}
114
123
public function z85decode ($ data ) {}
@@ -118,55 +127,177 @@ public function curvekeypair() {}
118
127
* @package zmq
119
128
*/
120
129
class ZMQContext {
121
- public function __construct ($ io_threads = 1 , $ persistent = true ) {}
130
+ /**
131
+ * Build a new ZMQContext object
132
+ *
133
+ * @param integer $io_threads
134
+ * @param boolean $is_persistent
135
+ * @return ZMQContext
136
+ */
137
+ public function __construct ($ io_threads ="" , $ persistent ="" ) {}
138
+ /**
139
+ * Acquires a handle to the request global context
140
+ *
141
+ * @return ZMQContext
142
+ */
122
143
public function acquire () {}
123
144
public function getsocketcount () {}
124
145
public function getsocket ($ type , $ dsn , $ on_new_socket ="" ) {}
125
146
public function ispersistent () {}
147
+ /**
148
+ * Set a context option
149
+ *
150
+ * @param int $option
151
+ * @param int $value
152
+ * @return ZMQContext
153
+ */
126
154
public function setOpt ($ option , $ value ) {}
155
+ /**
156
+ * Set a context option
157
+ *
158
+ * @param int $option
159
+ * @return ZMQContext
160
+ */
127
161
public function getOpt ($ option ) {}
128
162
}
129
163
/**
130
164
* @package zmq
131
165
*/
132
166
class ZMQSocket {
133
- public function __construct (ZMQContext $ ZMQContext , $ type , $ persistent_id =null , $ on_new_socket =null ) {}
134
- public function send ($ message , $ mode =0 ) {}
167
+ /**
168
+ * Build a new ZMQSocket object
169
+ *
170
+ * @param ZMQContext $context
171
+ * @param integer $type
172
+ * @param string $persistent_id
173
+ * @param callback $on_new_socket
174
+ * @return ZMQSocket
175
+ */
176
+ public function __construct (ZMQContext $ ZMQContext , $ type , $ persistent_id ="" , $ on_new_socket ="" ) {}
177
+ /**
178
+ * Send a message. Return true if message was sent and false on EAGAIN
179
+ *
180
+ * @param string $message
181
+ * @param integer $flags
182
+ * @return ZMQSocket
183
+ */
184
+ public function send ($ message , $ mode ="" ) {}
135
185
public function recv ($ mode ="" ) {}
136
- public function sendmulti ($ message , $ mode =0 ) {}
137
- public function recvmulti ($ mode =0 ) {}
138
- public function bind ($ dsn , $ force =false ) {}
139
- public function connect ($ dsn , $ force =false ) {}
140
- public function monitor ($ dsn , $ events =ZMQ ::EVENT_ALL ) {}
141
- public function recvevent ($ flags =0 ) {}
186
+ /**
187
+ * Send a multipart message. Return true if message was sent and false on EAGAIN
188
+ *
189
+ * @param arrays $messages
190
+ * @param integer $flags
191
+ * @return ZMQSocket
192
+ */
193
+ public function sendmulti ($ message , $ mode ="" ) {}
194
+ public function recvmulti ($ mode ="" ) {}
195
+ /**
196
+ * Bind the socket to an endpoint
197
+ *
198
+ * @param string $dsn
199
+ * @param boolean $force
200
+ * @return ZMQSocket
201
+ */
202
+ public function bind ($ dsn , $ force ="" ) {}
203
+ /**
204
+ * Connect the socket to an endpoint
205
+ *
206
+ * @param string $dsn
207
+ * @param boolean $force
208
+ * @return ZMQSocket
209
+ */
210
+ public function connect ($ dsn , $ force ="" ) {}
211
+ public function monitor ($ dsn , $ events ="" ) {}
212
+ public function recvevent ($ flags ="" ) {}
213
+ /**
214
+ * Unbind the socket from an endpoint
215
+ *
216
+ * @param string $dsn
217
+ * @return ZMQSocket
218
+ */
142
219
public function unbind ($ dsn ) {}
220
+ /**
221
+ * Disconnect the socket from an endpoint
222
+ *
223
+ * @param string $dsn
224
+ * @return ZMQSocket
225
+ */
143
226
public function disconnect ($ dsn ) {}
144
227
public function setsockopt ($ key , $ value ) {}
145
228
public function getendpoints () {}
146
229
public function getsockettype () {}
147
230
public function ispersistent () {}
148
231
public function getpersistentid () {}
149
232
public function getsockopt ($ key ) {}
150
- public function sendmsg ($ message , $ mode =0 ) {}
151
- public function recvmsg ($ mode =0 ) {}
233
+ public function sendmsg ($ message , $ mode ="" ) {}
234
+ public function recvmsg ($ mode ="" ) {}
152
235
}
153
236
/**
154
237
* @package zmq
155
238
*/
156
239
class ZMQPoll {
240
+ /**
241
+ * Add a ZMQSocket object into the pollset
242
+ *
243
+ * @param ZMQSocket $object
244
+ * @param integer $events
245
+ * @return integer
246
+ */
157
247
public function add ($ entry , $ type ) {}
248
+ /**
249
+ * Poll the sockets
250
+ *
251
+ * @param array $readable
252
+ * @param array $writable
253
+ * @param integer $timeout
254
+ * @return integer
255
+ */
158
256
public function poll (&$ readable , &$ writable , $ timeout ="" ) {}
159
257
public function getlasterrors () {}
258
+ /**
259
+ * Remove item from poll set
260
+ *
261
+ * @param mixed $item
262
+ * @return boolean
263
+ */
160
264
public function remove ($ remove ) {}
265
+ /**
266
+ * Returns the number of items in the set
267
+ *
268
+ * @return integer
269
+ */
161
270
public function count () {}
271
+ /**
272
+ * Clear the pollset
273
+ *
274
+ * @return ZMQPoll
275
+ */
162
276
public function clear () {}
277
+ /**
278
+ * Clear the pollset
279
+ *
280
+ * @return array
281
+ */
163
282
public function items () {}
164
283
}
165
284
/**
166
285
* @package zmq
167
286
*/
168
287
class ZMQDevice {
169
- public function __construct (ZMQSocket $ frontend , ZMQSocket $ backend , ZMQSocket $ capture =null ) {}
288
+ /**
289
+ * Construct a device
290
+ *
291
+ * @param ZMQSocket $frontend
292
+ * @param ZMQSocket $backend
293
+ * @return void
294
+ */
295
+ public function __construct (ZMQSocket $ frontend , ZMQSocket $ backend , ZMQSocket $ capture ="" ) {}
296
+ /**
297
+ * Start a device
298
+ *
299
+ * @return void
300
+ */
170
301
public function run () {}
171
302
public function setidlecallback ($ idle_callback , $ timeout , $ user_data ="" ) {}
172
303
public function setidletimeout ($ timeout ) {}
0 commit comments