TcpScanner constructor

TcpScanner({
  1. required IpAddressRange hostRange,
  2. required Set<int> ports,
  3. Duration timeout = const Duration(seconds: 1),
  4. bool debug = false,
})

Implementation

TcpScanner({required this.hostRange, required this.ports, this.timeout = const Duration(seconds: 1), this.debug = false}) {
  if (ports.isEmpty) {
    throw ArgumentError('Ports list cannot be empty');
  }
}