XTransportTcpClient.from constructor

XTransportTcpClient.from(
  1. String _ip,
  2. int _port, {
  3. bool log = false,
  4. XtransportCredentials credentials = const XtransportCredentials.insecure(),
})

Implementation

XTransportTcpClient.from(
  this._ip,
  this._port, {
  this.log = false,
  this.credentials = const XtransportCredentials.insecure(),
})  : assert(Uri.parse("tls://$_ip").host == _ip),
      assert(_port > 0 && _port < 65536);