← All docs

stream_socket_get_name()

Retrieve the name of the local or remote sockets.

stream_socket_get_name()

function stream_socket_get_name(resource $socket, bool $remote): mixed

Retrieve the name of the local or remote sockets.

Parameters:

  • $socket (resource)
  • $remote (bool)

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_socket_get_name is implemented in the compiler, see the internals page.