<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.zmqpoll.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'zmqpoll.add.php',
    1 => 'ZMQPoll::add',
    2 => 'Add item to the poll set',
  ),
  'up' => 
  array (
    0 => 'class.zmqpoll.php',
    1 => 'ZMQPoll',
  ),
  'prev' => 
  array (
    0 => 'class.zmqpoll.php',
    1 => 'ZMQPoll',
  ),
  'next' => 
  array (
    0 => 'zmqpoll.clear.php',
    1 => 'ZMQPoll::clear',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/zmq/zmqpoll/add.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="zmqpoll.add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ZMQPoll::add</h1>
  <p class="verinfo">(PECL zmq &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">ZMQPoll::add</span> &mdash; <span class="dc-title">Add item to the poll set</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-zmqpoll.add-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ZMQPoll::add</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$entry</code></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="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Adds a new item to the poll set and returns the internal id of the added item. The item can be removed
   from the poll set using the returned string id.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-zmqpoll.add-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">entry</code></dt>
     <dd>
      <p class="para">
       ZMQSocket object or a PHP stream resource
      </p>
     </dd>
    
    
     <dt><code class="parameter">type</code></dt>
     <dd>
      <p class="para">
       Defines what activity the socket is polled for. 
       See <strong><code><a href="class.zmq.php#zmq.constants.poll-in">ZMQ::POLL_IN</a></code></strong> and <strong><code><a href="class.zmq.php#zmq.constants.poll-out">ZMQ::POLL_OUT</a></code></strong> constants.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-zmqpoll.add-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Returns a string id of the added item which can be later used to remove the item. 
   Throws ZMQPollException on error.
  </p>
 </div>



</div><?php manual_footer($setup); ?>