Class ReachableHost
Holds information about a reachable host returned by GetReachableHost(IEnumerable<string>, ReachableHostMode).
Namespace: Neon.Net
Assembly: Neon.Common.dll
Syntax
public class ReachableHost
Constructors
ReachableHost(string, IPAddress, TimeSpan, bool)
Constructor.
Declaration
public ReachableHost(string host, IPAddress address, TimeSpan time, bool unreachable = false)
Parameters
Type | Name | Description |
---|---|---|
string | host | The target hostname. |
IPAddress | address | The target IP address or |
TimeSpan | time | The ping and answer round trip time. |
bool | unreachable | Optionally specifies that the host was reachable. |
Properties
Address
The target IP address or null
if the target is unreachable.
Declaration
public IPAddress Address { get; }
Property Value
Type | Description |
---|---|
IPAddress |
Host
The target host name.
Declaration
public string Host { get; }
Property Value
Type | Description |
---|---|
string |
Time
The ping and answer round trip time.
Declaration
public TimeSpan Time { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Unreachable
Indicates that the host was unreachable but was returned anyway because ReturnFirst was specified.
Declaration
public bool Unreachable { get; }
Property Value
Type | Description |
---|---|
bool |