API Reference
Class
PingTraceroute
Provides ICMP ping and traceroute capabilities.
Inheritance
- Object
- PingTraceroute
Remarks
Methods in this class rely on the underlying operating system's network stack and therefore require appropriate permissions.
Methods
public static async Task<PingReply> PingAsync(String host, Int32 timeout = 4000, InternalLogger logger = null) #Returns:
Task<PingReply>Sends a single ICMP echo request.
Parameters
- host System.String
- Target host name or address.
- timeout System.Int32 = 4000
- Timeout in milliseconds.
- logger DomainDetective.InternalLogger = null
- Optional diagnostic logger.
Returns
The PingReply from the operation.
public static async Task<IReadOnlyList<TracerouteHop>> TracerouteAsync(String host, Int32 maxHops = 30, Int32 timeout = 4000, InternalLogger logger = null) #Returns:
Task<IReadOnlyList<TracerouteHop>>Runs a traceroute to the specified host.
Parameters
- host System.String
- Target host name or address.
- maxHops System.Int32 = 30
- Maximum number of hops.
- timeout System.Int32 = 4000
- Timeout per hop in milliseconds.
- logger DomainDetective.InternalLogger = null
- Optional diagnostic logger.
Returns
Collection of traceroute hops.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object