connect static method

Future<SocksSocket> connect(
  1. List<ProxySettings> proxies,
  2. InternetAddress host,
  3. int port
)
override

Connects proxy client to given proxies with exit point of host:port.

Implementation

static Future<SocksSocket> connect(
  List<ProxySettings> proxies,
  InternetAddress host,
  int port,
) async {
  final client = await SocksSocket.initialize(proxies, host, port, SocksConnectionType.connect);
  return client.socket;
}