ZMQContext::__constructConstruct a new ZMQContext object Description
ZMQContext::__construct
([ integer
$io_threads = 1
[, boolean $is_persistent = true
]] )Constructs a new ZMQ context. The context is used to initialize sockets. A persistent context is required to initialize persistent sockets. Parameters
Examples
Example #1 A ZMQContext example Construct a new context and allocate request socket from it
<?php Return ValuesThrows ZMQContextException if context initialization fails. |