HH\Lib\OS\getpeername

Meta Engineer?

This is available as OS\getpeername in the 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