<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.net-get-interfaces.php',
    1 => 'net_get_interfaces',
    2 => 'Devuelve las interfaces de red',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'Funciones de red',
  ),
  'prev' => 
  array (
    0 => 'function.long2ip.php',
    1 => 'long2ip',
  ),
  'next' => 
  array (
    0 => 'function.openlog.php',
    1 => 'openlog',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    '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">Devuelve las interfaces de red</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.net-get-interfaces-description">
  <h3 class="title">Descripción</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">
   Devuelve una enumeración de las interfaces de red (adaptadores) en la máquina local.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.net-get-interfaces-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">Esta función no contiene ningún parámetro.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.net-get-interfaces-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve un <span class="type"><a href="language.types.array.php" class="type array">array</a></span> asociativo donde la clave es el nombre de la interfaz
   y el valor es un array asociativo de los atributos de la interfaz,
    o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si ocurre un error.
  </p>
  <p class="para">
   Cada array asociativo de interfaz contiene:
   <table class="doctable table">
    <caption><strong>Atributos de Interfaz</strong></caption>
    
     <thead>
      <tr>
       <th>Nombre</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>description</td>
       <td>
        Un valor de string opcional para la descripción de la interfaz.
        Solo Windows.
       </td>
      </tr>

      <tr>
       <td>mac</td>
       <td>
        Un valor de string opcional para la dirección MAC de la interfaz.
        Solo Windows.
       </td>
      </tr>

      <tr>
       <td>mtu</td>
       <td>
        Un valor integer para la unidad de transmisión máxima (MTU) de la interfaz.
        Solo Windows.
       </td>
      </tr>

      <tr>
       <td>unicast</td>
       <td>
        Un array de arrays asociativos, ver los atributos Unicast a continuación.
       </td>
      </tr>

      <tr>
       <td>up</td>
       <td>
        Un bool para el estado (on/off) de la interfaz.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Atributos de Unicast</strong></caption>
    
     <thead>
      <tr>
       <th>Nombre</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>flags</td>
       <td>
        Un valor integer.
       </td>
      </tr>

      <tr>
       <td>family</td>
       <td>
        Un valor integer.
       </td>
      </tr>

      <tr>
       <td>address</td>
       <td>
        Un valor string para la dirección en IPv4 o IPv6.
       </td>
      </tr>

      <tr>
       <td>netmask</td>
       <td>
        Un valor string para la máscara de subred en IPv4 o IPv6.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.net-get-interfaces-errors">
  <h3 class="title">Errores/Excepciones</h3>
  <p class="para">
   Emite un error <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> en caso de fallo al obtener la información de la interfaz.
  </p>
 </div>


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