<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.ssh2-poll.php',
    1 => 'ssh2_poll',
    2 => 'チャンネル/リスナー/ストリーム のイベントをポーリングする',
  ),
  'up' => 
  array (
    0 => 'ref.ssh2.php',
    1 => 'SSH2 関数',
  ),
  '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' => 'ja',
    '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">チャンネル/リスナー/ストリーム のイベントをポーリングする</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ssh2-poll-description">
  <h3 class="title">説明</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">
   チャンネル/リスナー/ストリーム のイベントをポーリングし、
   1個以上のイベントを返したディスクリプタの数を返します。
  </p>

  <div class="warning"><strong class="warning">警告</strong><p class="simpara">この関数は、
現在のところ詳細な情報はありません。引数のリストのみが
記述されています。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.ssh2-poll-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">desc</code></dt>
    <dd>
     <span class="simpara">
      <code class="literal">&#039;resource&#039;</code> と <code class="literal">&#039;events&#039;</code>
      をキーとした配列の、インデックス付きの配列。
      リソースの値は、(チャンネルの)ストリーム、
      または SSH2 リスナーのリソースです。
      イベントの値は、SSH2_POLL* フラグを bitwise OR でまとめて指定します。
      それぞれの配列は、返される際に <code class="literal">&#039;revents&#039;</code> 要素にまとめられ、
      発生したイベントの SSH2_POLL* フラグが bitwize OR でまとまったものがその値になります。
     </span>
    </dd>
   
   
    <dt><code class="parameter">timeout</code></dt>
    <dd>
     <span class="simpara">
      タイムアウトさせる時間を秒単位で指定します。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ssh2-poll-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   1個以上のイベントを返したディスクリプタの数を返します。
  </p>
 </div>


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