HH\Lib\OS\sockaddr_in::__construct

Meta Engineer?

The containing class is available as OS\sockaddr_in in the www repository.

Construct a sockaddr_in

public function __construct(
  int $port,
  HH\Lib\OS\in_addr $address,
);

Unlike the C API, all integers are in host byte order, not network byte order.

Parameters

  • int $port
  • HH\Lib\OS\in_addr $address