array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), '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 Функції', ), '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); ?>

stream_socket_get_name

(PHP 5, PHP 7, PHP 8)

stream_socket_get_nameRetrieve the name of the local or remote sockets

Опис

stream_socket_get_name(resource $socket, bool $remote): string|false

Returns the local or remote name of a given socket connection.

Параметри

socket

The socket to get the name of.

remote

If set to true the remote socket name will be returned, if set to false the local socket name will be returned.

Значення, що повертаються

The name of the socket, або false в разі помилки.

Прогляньте також