Gen. partnerAlgotech

PHP function stream_socket_get_name()

Retrieve the name of the local or remote sockets

|
September 11, 2019

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.

Other resources

Official documentation for stream-socket-get-name

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.