<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.net-get-interfaces.php',
    1 => 'net_get_interfaces',
    2 => 'Renvoie les interfaces r&eacute;seau',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'Fonctions r&eacute;seaux',
  ),
  'prev' => 
  array (
    0 => 'function.long2ip.php',
    1 => 'long2ip',
  ),
  'next' => 
  array (
    0 => 'function.openlog.php',
    1 => 'openlog',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Renvoie les interfaces réseau</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.net-get-interfaces-description">
  <h3 class="title">Description</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">
   Renvoie une énumération des interfaces réseau (adaptateurs) sur la machine locale.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.net-get-interfaces-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.net-get-interfaces-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Renvoie un <a href="language.types.array.php" class="link">tableau</a> associatif où la clé est le nom de l&#039;interface
   et la valeur un tableau associatif des attributs de l&#039;interface,
    ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
  <p class="para">
   Chaque tableau associatif d&#039;interface contient :
   <table class="doctable table">
    <caption><strong>Attributs d&#039;Interface</strong></caption>
    
     <thead>
      <tr>
       <th>Nom</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>description</td>
       <td>
        Une valeur de chaîne optionnelle pour la description de l&#039;interface.
        Windows seulement.
       </td>
      </tr>

      <tr>
       <td>mac</td>
       <td>
        Une valeur de chaîne optionnelle pour l&#039;adresse MAC de l&#039;interface.
        Windows seulement.
       </td>
      </tr>

      <tr>
       <td>mtu</td>
       <td>
        Une valeur entière pour l&#039;unité de transmission maximale (MTU) de l&#039;interface.
        Windows seulement.
       </td>
      </tr>

      <tr>
       <td>unicast</td>
       <td>
        Un tableau d&#039;arrays associatifs, voir les attributs Unicast ci-dessous.
       </td>
      </tr>

      <tr>
       <td>up</td>
       <td>
        Un booléen pour l&#039;état (on/off) de l&#039;interface.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Attributs d&#039;Unicast</strong></caption>
    
     <thead>
      <tr>
       <th>Nom</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>flags</td>
       <td>
        Une valeur entière.
       </td>
      </tr>

      <tr>
       <td>family</td>
       <td>
        Une valeur entière.
       </td>
      </tr>

      <tr>
       <td>address</td>
       <td>
        Une valeur de chaîne pour l&#039;adresse en IPv4 ou IPv6.
       </td>
      </tr>

      <tr>
       <td>netmask</td>
       <td>
        Une valeur de chaîne pour le masque de sous-réseau en IPv4 ou IPv6.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.net-get-interfaces-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Emet une erreur <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> en cas d&#039;échec pour obtenir les informations de l&#039;interface.
  </p>
 </div>


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