Menu Samaritan's Purse

STREAM_SOCKET_GET_NAME

Retrieve the name of the local or remote sockets

SYNTAX

stream_socket_get_name ( resource $handle , bool $want_peer ) : string

PARAMETERS

handle

The socket to get the name of.

want_peer

If set to TRUE the remote socket name will be returned, if set to FALSE the local socket name will be returned.

RETURN

The name of the socket.

PHP