socketStartConnect method

  1. @override
Future<ConnectionTask<Socket>> socketStartConnect(
  1. dynamic host,
  2. int port, {
  3. dynamic sourceAddress,
  4. int sourcePort = 0,
})
override

Asynchronously returns a ConnectionTask that connects to the given host and port when successful.

When this override is installed, this functions overrides the behavior of Socket.startConnect(...).

Implementation

@override
Future<ConnectionTask<Socket>> socketStartConnect(host, int port, {sourceAddress, int sourcePort = 0}) => iOOverrides.socketStartConnect(host, port, sourceAddress: sourceAddress, sourcePort: sourcePort);