<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.stream.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.stream-socket-get-name.php',
    1 => 'stream_socket_get_name',
    2 => 'Retrieve the name of the local or remote sockets',
  ),
  'up' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Stream Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.stream-socket-enable-crypto.php',
    1 => 'stream_socket_enable_crypto',
  ),
  'next' => 
  array (
    0 => 'function.stream-socket-pair.php',
    1 => 'stream_socket_pair',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stream/functions/stream-socket-get-name.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stream-socket-get-name" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_socket_get_name</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">stream_socket_get_name</span> &mdash; <span class="dc-title">Retrieve the name of the local or remote sockets</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.stream-socket-get-name-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_socket_get_name</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$socket</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$remote</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Returns the local or remote name of a given socket connection.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stream-socket-get-name-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">socket</code></dt>
     <dd>
      <p class="para">
       The socket to get the name of.
      </p>
     </dd>
    
    
     <dt><code class="parameter">remote</code></dt>
     <dd>
      <p class="para">
       If set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> the <code class="literal">remote</code> socket name will be returned, if set
       to <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> the <code class="literal">local</code> socket name will be returned.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-socket-get-name-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   The name of the socket, o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.stream-socket-get-name-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.stream-socket-accept.php" class="function" rel="rdfs-seeAlso">stream_socket_accept()</a> - Accept a connection on a socket created by stream_socket_server</span></li>
   </ul>
  </p>
 </div>

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