HH\Lib\OS\accept

Facebook Engineer?

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

Accept a connection on a socket

namespace HH\Lib\OS;

function accept(
  FileDescriptor $fd,
): (FileDescriptor, sockaddr);

See man 2 accept for details.

Parameters

  • FileDescriptor $fd

Returns

  • (FileDescriptor, sockaddr)