<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.zmq.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'class.zmqcontext.php',
    1 => 'ZMQContext',
    2 => 'Класс ZMQContext',
  ),
  'up' => 
  array (
    0 => 'book.zmq.php',
    1 => 'Обмен сообщениями 0MQ',
  ),
  'prev' => 
  array (
    0 => 'zmq.construct.php',
    1 => 'ZMQ::__construct',
  ),
  'next' => 
  array (
    0 => 'zmqcontext.construct.php',
    1 => 'ZMQContext::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/zmq/zmqcontext.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.zmqcontext.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.zmqcontext" class="reference">

 <h1 class="title">Класс ZMQContext</h1>
 

 <div class="partintro"><p class="verinfo">(PECL zmq &gt;= 0.5.0)</p>

  
  <div class="section" id="zmqcontext.intro">
   <h2 class="title">Введение</h2>
   <p class="para">

   </p>
  </div>
  

  <div class="section" id="zmqcontext.synopsis">
   <h2 class="title">Обзор класса</h2>

   
   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>

    
    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">ZMQContext</strong>
     </span>
     {</div>
    

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Методы */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="zmqcontext.construct.php" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$io_threads</code><span class="initializer"> = 1</span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$is_persistent</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="zmqcontext.getopt.php" class="methodname">getOpt</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="zmqcontext.getsocket.php" class="methodname">getSocket</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$persistent_id</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$on_new_socket</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="class.zmqsocket.php" class="type ZMQSocket">ZMQSocket</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="zmqcontext.ispersistent.php" class="methodname">isPersistent</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="zmqcontext.setopt.php" class="methodname">setOpt</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.zmqcontext.php" class="type ZMQContext">ZMQContext</a></span></div>

   }</div>
   

  </div>

 </div>

 































<h2>Содержание</h2><ul class="chunklist chunklist_reference"><li><a href="zmqcontext.construct.php">ZMQContext::__construct</a> — Конструктор ZMQContext</li><li><a href="zmqcontext.getopt.php">ZMQContext::getOpt</a> — Получить опцию контекста</li><li><a href="zmqcontext.getsocket.php">ZMQContext::getSocket</a> — Создаёт новый сокет</li><li><a href="zmqcontext.ispersistent.php">ZMQContext::isPersistent</a> — Является ли контекст постоянным</li><li><a href="zmqcontext.setopt.php">ZMQContext::setOpt</a> — Установить опцию сокета</li></ul>
</div>
<?php manual_footer($setup); ?>