HostScanner class Null safety

Scans for all hosts in a subnet.

Constructors

HostScanner()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getAllPingableDevices(String subnet, {int firstSubnet = 1, int lastSubnet = 254, int timeoutInSeconds = 1, ProgressCallback? progressCallback, bool resultsInAddressAscendingOrder = true}) Stream<ActiveHost>
Scans for all hosts in a particular subnet (e.g., 192.168.1.0/24) Set maxHost to higher value if you are not getting results. It won't firstSubnet again unless previous scan is completed due to heavy resource consumption. resultsInAddressAscendingOrder = false will return results faster but not in ascending order and without progressCallback.
getMaxHost(String subnet) int
scanDevicesForSinglePort(String subnet, int port, {int firstSubnet = 1, int lastSubnet = 254, Duration timeout = const Duration(milliseconds: 2000), ProgressCallback? progressCallback, bool resultsInAddressAscendingOrder = true}) Stream<ActiveHost>
Scans for all hosts that have the specific port that was given. resultsInAddressAscendingOrder = false will return results faster but not in ascending order and without progressCallback.

Constants

classASubnets → const int
16777216
classBSubnets → const int
65536
classCSubnets → const int
256