<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.yaz.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.yaz-wait.php',
    1 => 'yaz_wait',
    2 => 'Z39.50 リクエストが完了するまで待つ',
  ),
  'up' => 
  array (
    0 => 'ref.yaz.php',
    1 => 'YAZ 関数',
  ),
  'prev' => 
  array (
    0 => 'function.yaz-syntax.php',
    1 => 'yaz_syntax',
  ),
  'next' => 
  array (
    0 => 'book.zmq.php',
    1 => '0MQ messaging',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/yaz/functions/yaz-wait.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.yaz-wait" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">yaz_wait</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.1, PECL yaz &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">yaz_wait</span> &mdash; <span class="dc-title">Z39.50 リクエストが完了するまで待つ</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.yaz-wait-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>yaz_wait</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$options</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   この関数は、関数 <span class="function"><a href="function.yaz-connect.php" class="function">yaz_connect()</a></span>、
   <span class="function"><a href="function.yaz-search.php" class="function">yaz_search()</a></span>、<span class="function"><a href="function.yaz-present.php" class="function">yaz_present()</a></span>、
   <span class="function"><a href="function.yaz-scan.php" class="function">yaz_scan()</a></span>、<span class="function"><a href="function.yaz-itemorder.php" class="function">yaz_itemorder()</a></span>
   により準備された発行済のリクエストを、ネットワーク経由で（ブロック
   モードで）伝送します。
  </p>
  <p class="para">
   <span class="function"><strong>yaz_wait()</strong></span>は、全てのターゲットが全てのリクエストを
   完了したか、（エラーの場合には）中断された場合に処理を戻します。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.yaz-wait-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       オプションの連想配列。
       <dl>
        
         <dt><code class="literal">timeout</code></dt>
         <dd>
          <p class="para">
           タイムアウトの秒数を設定します。ターゲットが時間内に応答しなかった
           場合は動作していないとみなされ、<span class="function"><strong>yaz_wait()</strong></span>
           は終了します。タイムアウトのデフォルト値は 15 秒です。
          </p>
         </dd>
        
        
         <dt><code class="literal">event</code></dt>
         <dd>
          <p class="para">
           論理型の値。
          </p>
         </dd>
        
       </dl>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.yaz-wait-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
   イベントモードでは、成功した場合にリソース、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>

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