HH\Lib\OS\bind

Facebook Engineer?

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

Bind a socket to an address

namespace HH\Lib\OS;

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

See man 2 bind for details.

Parameters

  • FileDescriptor $fd
  • sockaddr $sa

Returns

  • void