ActiveHost class

ActiveHost which implements comparable By default sort by hostId ascending

Constructors

ActiveHost({required InternetAddress internetAddress, List<OpenPort> openPorts = const [], String? macAddress, PingData? pingData, MdnsInfo? mdnsInfoVar})
ActiveHost.buildWithAddress({required String address, String? macAddress, List<OpenPort> openPorts = const [], PingData? pingData, MdnsInfo? mdnsInfo})
factory
ActiveHost.fromSendableActiveHost({required SendableActiveHost sendableActiveHost, String? macAddress, MdnsInfo? mdnsInfo})
factory

Properties

address String
no setter
arpData Future<ARPData?>
Resolve ARP data for this host. only supported on Linux, Macos and Windows otherwise null
getter/setter pair
deviceName Future<String>
This device name does not following any guideline and is just some name that we can show for the device. Preferably hostName, if not than mDNS name, if not than will get the value of generic. This value can change after the object got created since getting host name of device is running async function.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hostId String
The device specific number in the ip address. In IPv4 numbers after the last dot, in IPv6 the numbers after the last colon
getter/setter pair
hostName Future<String?>
Host name of the device, not to be confused with deviceName which does not follow any internet protocol property
getter/setter pair
internetAddress InternetAddress
getter/setter pair
mdnsInfo Future<MdnsInfo?>
Mdns information of this device
getter/setter pair
openPorts List<OpenPort>
List of all the open port of this device
getter/setter pair
pingData → PingData
no setter
responseTime Duration?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vendor Future<Vendor?>
Only works if arpData is not null and have valid mac address.
getter/setter pair
weirdHostName String
getter/setter pair

Methods

compareTo(ActiveHost other) int
getMacAddress() Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveInfo() Future<void>
setARPData() Future<ARPData?>
setDeviceName() Future<String>
Set some kind of device name. Will try couple of names, if all are null will just return generic
setHostInfo() Future<String?>
Try to find the host name of this device, if not exist host name will stay null
setMdnsInfo() Future<MdnsInfo?>
Try to find the mdns name of this device, if not exist mdns name will be null TODO: search mdns name for each device
setVendor() Future<Vendor?>
toString() String
A string representation of this object.
override
toStringFull() Future<String>

Operators

operator ==(Object o) bool
The equality operator.
override

Static Methods

getPingData(String host) → PingData

Constants

generic → const String