HH\Lib\OS\getpeername

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