<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sockets.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.socket-addrinfo-lookup.php',
    1 => 'socket_addrinfo_lookup',
    2 => 'Get array with contents of getaddrinfo about the given hostname',
  ),
  'up' => 
  array (
    0 => 'ref.sockets.php',
    1 => 'Soket İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.socket-addrinfo-explain.php',
    1 => 'socket_addrinfo_explain',
  ),
  'next' => 
  array (
    0 => 'function.socket-atmark.php',
    1 => 'socket_atmark',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sockets/functions/socket-addrinfo-lookup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.socket-addrinfo-lookup" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">socket_addrinfo_lookup</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.2.0, PHP 8)</p><p class="refpurpose"><span class="refname">socket_addrinfo_lookup</span> &mdash; <span class="dc-title">Get array with contents of getaddrinfo about the given hostname</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.socket-addrinfo-lookup-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>socket_addrinfo_lookup</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$host</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$service</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$hints</code><span class="initializer"> = []</span></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">
   Lookup different ways we can connect to <code class="parameter">host</code>.  The returned array contains
   a set of <span class="classname"><a href="class.addressinfo.php" class="classname">AddressInfo</a></span> instances that we can bind to using <span class="function"><a href="function.socket-addrinfo-bind.php" class="function">socket_addrinfo_bind()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.socket-addrinfo-lookup-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">host</code></dt>
    <dd>
     <p class="para">
      Hostname to search.
     </p>
    </dd>
   
   
    <dt><code class="parameter">service</code></dt>
    <dd>
     <p class="para">
      The service to connect to. If service is a numeric string, it designates the port.
      Otherwise it designates a network service name, which is mapped to a port by the operating system.
     </p>
    </dd>
   
   
    <dt><code class="parameter">hints</code></dt>
    <dd>
     <p class="para">
      Hints provide criteria for selecting addresses returned.  You may specify the
      hints as defined by getaddrinfo.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.socket-addrinfo-lookup-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Returns an array of <span class="classname"><a href="class.addressinfo.php" class="classname">AddressInfo</a></span> instances that can be used with
   the <span class="function">socket_addrinfo_<span class="replaceable">*</span></span> family of functions.
   On failure, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> is returned.
  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.socket-addrinfo-lookup-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       On success, this function returns an array of <span class="classname"><a href="class.addressinfo.php" class="classname">AddressInfo</a></span> instances now;
       previously, an array of <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>s was returned.
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">service</code> is nullable now.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.socket-addrinfo-lookup-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.socket-addrinfo-bind.php" class="function" rel="rdfs-seeAlso">socket_addrinfo_bind()</a> - Create and bind to a socket from a given addrinfo</span></li>
    <li><span class="function"><a href="function.socket-addrinfo-connect.php" class="function" rel="rdfs-seeAlso">socket_addrinfo_connect()</a> - Create and connect to a socket from a given addrinfo</span></li>
    <li><span class="function"><a href="function.socket-addrinfo-explain.php" class="function" rel="rdfs-seeAlso">socket_addrinfo_explain()</a> - Get information about addrinfo</span></li>
   </ul>
  </p>
 </div>


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