LanScanner class

A class to handle discovering devices in the local network

Call icmpScan on LanScanner instance to get access to the stream.

Constructors

LanScanner({bool debugLogging = false})
Constructor of LanScanner

Properties

debugLogging bool
If true, the icmpScan method will print debug logs (information about ping responses and errors)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isScanInProgress bool
Checks if scan is already in progress. For performance reasons, you can't begin scan while the first one is running.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

icmpScan(String subnet, {int firstIP = 1, int lastIP = 255, int scanThreads = 10, Duration timeout = const Duration(seconds: 1), ProgressCallback? progressCallback}) Stream<Host>
Discovers network devices in the given subnet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quickIcmpScanAsync(String subnet, {int firstIP = 1, int lastIP = 255, Duration timeout = const Duration(seconds: 1)}) Future<List<Host>>
Discovers network devices in the given subnet.
quickIcmpScanSync(String subnet, {int firstIP = 1, int lastIP = 255, Duration timeout = const Duration(seconds: 1)}) Future<List<Host>>
Discovers network devices in the given subnet. Works on iOS platform.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited