startConnect method

Future<ConnectionTask<RawSocket>> startConnect (
  1. dynamic host,
  2. int port,
  3. {dynamic sourceAddress}
)

Like connect, but returns a Future that completes with a ConnectionTask that can be cancelled if the RawSocket is no longer needed.

Implementation

external static Future<ConnectionTask<RawSocket>> startConnect(host, int port,
    {sourceAddress});