HH\Lib\TCP\connect_nd_async

Facebook Engineer?

This function is available as TCP\gen_connect_nd() in Facebook's www repository.

Deprecated: Use connect_async() instead

namespace HH\Lib\TCP;

function connect_nd_async(
  string $host,
  int $port,
  ConnectOptions $opts = array (
),
): Awaitable<CloseableSocket>;

Parameters

  • string $host
  • int $port
  • ConnectOptions $opts = array ( )

Returns