TcpScanner constructor

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

Implementation

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