HH\Lib\OS\getpeername

Facebook Engineer?

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

Get address of the connected peer

namespace HH\Lib\OS;

function getpeername(
  FileDescriptor $fd,
): sockaddr;

See man 2 getpeername for details.

Parameters

  • FileDescriptor $fd

Returns