array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'zmqcontext.ispersistent.php', 1 => 'ZMQContext::isPersistent', 2 => 'Whether the context is persistent', ), 'up' => array ( 0 => 'class.zmqcontext.php', 1 => 'ZMQContext', ), 'prev' => array ( 0 => 'zmqcontext.getsocket.php', 1 => 'ZMQContext::getSocket', ), 'next' => array ( 0 => 'zmqcontext.setopt.php', 1 => 'ZMQContext::setOpt', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/zmq/zmqcontext/ispersistent.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ZMQContext::isPersistent

(PECL zmq >= 0.5.0)

ZMQContext::isPersistentWhether the context is persistent

说明

public ZMQContext::isPersistent(): bool

Whether the context is persistent. Persistent context is needed for persistent connections as each socket is allocated from a context.

参数

此函数没有参数。

返回值

Returns true if the context is persistent and false if the context is non-persistent.