<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.network.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.net-get-interfaces.php',
    1 => 'net_get_interfaces',
    2 => 'ネットワークインターフェイスを取得する',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'ネットワーク 関数',
  ),
  'prev' => 
  array (
    0 => 'function.long2ip.php',
    1 => 'long2ip',
  ),
  'next' => 
  array (
    0 => 'function.openlog.php',
    1 => 'openlog',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/network/functions/net-get-interfaces.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.net-get-interfaces" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">net_get_interfaces</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.3, PHP 8)</p><p class="refpurpose"><span class="refname">net_get_interfaces</span> &mdash; <span class="dc-title">ネットワークインターフェイスを取得する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.net-get-interfaces-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>net_get_interfaces</strong></span>(): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   ローカルマシン上にあるネットワークインターフェイス(アダプタ)
   の一覧を返します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.net-get-interfaces-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.net-get-interfaces-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   連想配列を返します。
   その内容は、キーがインターフェイスの名前で、
   値がインターフェイスの属性を示す連想配列です。
   失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します.
  </p>
  <p class="para">
   インターフェイスごとの連想配列は、下記を含みます:
   <table class="doctable table">
    <caption><strong>インターフェイスの属性</strong></caption>
    
     <thead>
      <tr>
       <th>名前</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>description</td>
       <td>
        インターフェイスの説明を示すオプションの値。
        Windows でのみ有効です。
       </td>
      </tr>

      <tr>
       <td>mac</td>
       <td>
        インターフェイスのMACアドレスを示すオプションの値。
        Windows でのみ有効です。
       </td>
      </tr>

      <tr>
       <td>mtu</td>
       <td>
        インターフェイスのMTUを示す整数値。
        Windows でのみ有効です。
       </td>
      </tr>

      <tr>
       <td>unicast</td>
       <td>
        連想配列の配列。
        詳細は以下のユニキャストに関する属性を参照ください。
       </td>
      </tr>

      <tr>
       <td>up</td>
       <td>
        インターフェイスの状態 (on/off) を示す Boolean の値。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>ユニキャストの属性</strong></caption>
    
     <thead>
      <tr>
       <th>名前</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>flags</td>
       <td>
        整数値。
       </td>
      </tr>

      <tr>
       <td>family</td>
       <td>
        整数値。
       </td>
      </tr>

      <tr>
       <td>address</td>
       <td>
        IPv4 または IPv6 形式の、アドレスを示す文字列。
       </td>
      </tr>

      <tr>
       <td>netmask</td>
       <td>
        IPv4 または IPv6 形式の、ネットマスクを示す文字列。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.net-get-interfaces-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">
   インターフェイス情報を取得できなかった場合は、
   <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> が発生します。
  </p>
 </div>


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