HostProbeOutcome

Result of one IHostProbe against one address. Each probe fills only what its technique can learn: ARP the MAC, ICMP the round-trip, TCP the open ports.

public sealed record HostProbeOutcome : IEquatable<HostProbeOutcome>

1. Constructors

1.1. HostProbeOutcome(IP, ProbeMethod, bool, MacAddress?, TimeSpan?, IReadOnlyCollection<Port>)

Result of one IHostProbe against one address. Each probe fills only what its technique can learn: ARP the MAC, ICMP the round-trip, TCP the open ports.

public HostProbeOutcome(IP Address, ProbeMethod Method, bool Responded, MacAddress? Mac, TimeSpan? RoundTrip, IReadOnlyCollection<Port> OpenPorts)
Table 1. Parameters
Name Type Description

Address

IP

The probed address.

Method

ProbeMethod

Technique that produced this outcome.

Responded

bool

True when the host proved present.

Mac

MacAddress?

MAC address, when the technique resolves one (ARP).

RoundTrip

TimeSpan?

Round-trip time, when the technique measures one (ICMP).

OpenPorts

IReadOnlyCollection<Port>

Ports found accepting connections (TCP).

2. Properties

2.1. Address

The probed address.

public IP Address { get; init; }

2.2. Mac

MAC address, when the technique resolves one (ARP).

public MacAddress? Mac { get; init; }

2.3. Method

Technique that produced this outcome.

public ProbeMethod Method { get; init; }

2.4. OpenPorts

Ports found accepting connections (TCP).

public IReadOnlyCollection<Port> OpenPorts { get; init; }

2.5. Responded

True when the host proved present.

public bool Responded { get; init; }

2.6. RoundTrip

Round-trip time, when the technique measures one (ICMP).

public TimeSpan? RoundTrip { get; init; }

3. Methods

3.1. NoResponse(IP, ProbeMethod)

Outcome for an address that did not answer this technique.

public static HostProbeOutcome NoResponse(IP address, ProbeMethod method)
Table 2. Parameters
Name Type Description

address

IP

The probed address.

method

ProbeMethod

Technique that found nothing.

Returns: HostProbeOutcome

4. Operators

4.1. operator !=(HostProbeOutcome, HostProbeOutcome)

public static bool operator !=(HostProbeOutcome left, HostProbeOutcome right)
Table 3. Parameters
Name Type Description

left

HostProbeOutcome

right

HostProbeOutcome

Returns: bool

4.2. operator ==(HostProbeOutcome, HostProbeOutcome)

public static bool operator ==(HostProbeOutcome left, HostProbeOutcome right)
Table 4. Parameters
Name Type Description

left

HostProbeOutcome

right

HostProbeOutcome

Returns: bool