ScanResult class
Scan result contains data of prepared, current and finished scan.
Constructors
-
ScanResult({String? host, List<
int> ports = const [], List<int> open = const [], List<int> closed = const [], List<int> scanned = const [], ScanStatuses status = ScanStatuses.unknown}) - Main constructor
- ScanResult.fromJson(String json)
- Creation object from JSON
Properties
-
closed
↔ List<
int> -
Closed ports
getter/setter pair
- elapsed ↔ int
-
Returns elapsed scan time in milliseconds.
If scanning is still in progress then returns difference between scan start and current time.
If the start time is undefined return -1
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ String?
-
Host
getter/setter pair
-
open
↔ List<
int> -
Open ports
getter/setter pair
-
ports
↔ List<
int> -
All testing ports
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scanned
↔ List<
int> -
Ports which was scanned. This field is modifies when scan is in progress.
getter/setter pair
- status ↔ ScanStatuses
-
Returns current scanning status
getter/setter pair
Methods
-
addClosed(
int port) → void - Add closed port
-
addOpen(
int port) → void - Add open port
-
addPort(
int port) → void - Add single port
-
addScanned(
int port) → void - Add scanned port
-
fromJson(
String json) → void - Deserialize from JSON
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to JSON
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited