Router class
Represents an upnp enabled router
Properties
- device → Device?
-
The according device to this router
final
- hasEthernetLink → bool
-
Returns if this router has an ethernet link
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getExternalIpAddress(
) → Future< String?> - Returns the external ip address of this router or null if it has none
-
getTotalBytesReceived(
) → Future< int> - Returns the amount of total received sent since the router is up/tracking statistics
-
getTotalBytesSent(
) → Future< int> - Returns the amount of total bytes sent since the router is up/tracking statistics
-
getTotalPacketsReceived(
) → Future< int> - Returns the amount of total received sent since the router is up/tracking statistics
-
getTotalPacketsSent(
) → Future< int> - Returns the amount of total packets sent since the router is up/tracking statistics
-
init(
) → Future - Starts gathering information about this router. This method does not have to be called if the device was found via Router.find() or Router.findAll()
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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
-
find(
) → Future< Router?> - Returns the first router found or null if none was found
-
findAll(
{bool silent = true, bool unique = true, bool enableIpv4Only = true, Duration timeout = const Duration(seconds: 10)}) → Stream< Router> - Returns a stream of discovered devices with DIAL capabilities. If unique, already found devices won't be added again to the stream. If silent, no exceptions will be passed to the returned stream.