ZMQSocket::connect

(PECL zmq >= 0.5.0) Connect the socket public ZMQSocket ZMQSocket::connect ( string $dsn [, boolean $force = false ] ) Connect the socket to a remote endpoint. The endpoint is defined in format transport://address where transport is one of the following: inproc, ipc, tcp, pgm or epgm. Parameters: dsn The connect dsn, for example transport://address.

ZMQSocket::bind

(PECL zmq >= 0.5.0) Bind the socket public ZMQSocket ZMQSocket::bind ( string $dsn [, boolean $force = false ] ) Bind the socket to an endpoint. The endpoint is defined in format transport://address where transport is one of the following: inproc, ipc, tcp, pgm or epgm. Parameters: dsn The bind dsn, for example transport://address. force

ZMQContext::setOpt

(PECL zmq >= 1.0.4) Set a socket option public ZMQContext ZMQContext::setOpt ( integer $key, mixed $value ) Sets a ZMQ context option. The type of the value depends on the key. See ZMQ Constant Types for more information. Parameters: key One of the ZMQ::CTXOPT_* constants. value The value of the parameter. Returns

ZMQContext::isPersistent

(PECL zmq >= 0.5.0) Whether the context is persistent public boolean ZMQContext::isPersistent ( void ) Whether the context is persistent. Persistent context is needed for persistent connections as each socket is allocated from a context. Returns: Returns TRUE if the context is persistent and FALSE if the context is non-persistent.

ZMQContext::getSocket

(PECL zmq >= 0.5.0) Create a new socket public ZMQSocket ZMQContext::getSocket ( integer $type [, string $persistent_id = null [, callback $on_new_socket = null ]] ) Shortcut for creating new sockets from the context. If the context is not persistent the persistent_id parameter is ignored and the socket falls back to being non-persistent. The on_new_socket is called only when a new underlying socket structure is created

ZMQContext::getOpt

(PECL zmq >= 1.0.4) Get context option public mixed ZMQContext::getOpt ( string $key ) Returns the value of a context option. Parameters: key An integer representing the option. See the ZMQ::CTXOPT_* constants. Returns: Returns either a string or an integer depending on key. Throws ZMQContextException on error.

ZMQContext::__construct

(PECL zmq >= 0.5.0) Construct a new ZMQContext object 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: io_threads Number of io-threads in the context. is_

ZMQ::__construct

(PECL zmq >= 0.5.0) ZMQ constructor private ZMQ::__construct ( void ) Private constructor to prevent direct initialization. This class holds the constants for ZMQ extension. Returns:

yp_order

(PHP 4, PHP 5 <= 5.0.5) Returns the order number for a map int yp_order ( string $domain, string $map ) Gets the order number for a map. Parameters: domain Gets the order number for a map. map Gets the order number for a map. Returns: Returns the order number for a map or FALSE on error.

yp_next

(PHP 4, PHP 5 <= 5.0.5) Returns the next key-value pair in the named map array yp_next ( string $domain, string $map, string $key ) Returns the next key-value pair in the named map after the specified key. Parameters: domain Returns the next key-value pair in the named map after the specified key. map Returns the next key-value pair