HH\Lib\OS\connect

Facebook Engineer?

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

Start a socket connection

namespace HH\Lib\OS;

function connect(
  FileDescriptor $fd,
  sockaddr $sa,
): void;

See man 2 connect for details.

Parameters

  • FileDescriptor $fd
  • sockaddr $sa

Returns

  • void