HH\Lib\OS\accept

Meta Engineer?

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