PHP function stream_socket_get_name()
Availability in PHP 5.0
Retrieve the name of the local or remote sockets
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$handle |
resource |
not | The socket to get the name of. |
$want_peer |
bool |
not | If set to true the remote socket name will be returned, if set to false the local socket name will be returned. |
Return values
string
The name of the socket.