<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ssh2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.ssh2-poll.php',
    1 => 'ssh2_poll',
    2 => 'Poll the channels/listeners/streams for events',
  ),
  'up' => 
  array (
    0 => 'ref.ssh2.php',
    1 => 'SSH2 Functions',
  ),
  'prev' => 
  array (
    0 => 'function.ssh2-methods-negotiated.php',
    1 => 'ssh2_methods_negotiated',
  ),
  'next' => 
  array (
    0 => 'function.ssh2-publickey-add.php',
    1 => 'ssh2_publickey_add',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ssh2/functions/ssh2-poll.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ssh2-poll" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ssh2_poll</h1>
  <p class="verinfo">(PECL ssh2 &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">ssh2_poll</span> &mdash; <span class="dc-title">Poll the channels/listeners/streams for events</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ssh2-poll-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ssh2_poll</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$desc</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timeout</code><span class="initializer"> = 30</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   Polls the channels/listeners/streams for events,
   and returns the number of descriptors which returned non-zero revents.
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
currently not documented; only its argument list is available.
</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.ssh2-poll-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">desc</code></dt>
    <dd>
     <span class="simpara">
      An indexed array of subarrays with the keys
      <code class="literal">&#039;resource&#039;</code> and <code class="literal">&#039;events&#039;</code>.
      The value of the resource is a (channel) stream or an SSH2 Listener resource.
      The value of the event are SSH2_POLL* flags bitwise ORed together.
      Each subarray will be populated with an <code class="literal">&#039;revents&#039;</code> element on return,
      whose values are SSH2_POLL* flags bitwise ORed together of the events that occurred.
     </span>
    </dd>
   
   
    <dt><code class="parameter">timeout</code></dt>
    <dd>
     <span class="simpara">
      The timeout in seconds.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ssh2-poll-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns the number of descriptors which returned non-zero revents.
  </p>
 </div>


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