HH\Lib\OS\getsockname

Facebook Engineer?

This function is available as OS\getsockname() in Facebook's www repository.

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