HH\Lib\OS\getsockname

Get the name of the local end of a socket

namespace HH\Lib\OS;

function getsockname(
  FileDescriptor $fd,
): sockaddr;

See man 2 getsockname for details.

Parameters

  • FileDescriptor $fd

Returns