HH\Lib\TCP\Server::createAsync

Create a bound and listening instance

public static function createAsync(
  HH\Lib\Network\IPProtocolVersion $ipv,
  string $host,
  int $port,
  HH\Lib\TCP\ServerOptions $opts = array (
),
): Awaitable<this>;

Parameters

  • HH\Lib\Network\IPProtocolVersion $ipv
  • string $host
  • int $port
  • HH\Lib\TCP\ServerOptions $opts = array ( )

Returns