Domain Detective

API Reference

Class

PingTraceroute

Namespace DomainDetective.Network
Assembly DomainDetective
Modifiers static

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 requiredposition: 0
Target host name or address.
timeout System.Int32 = 4000 optionalposition: 1
Timeout in milliseconds.
logger DomainDetective.InternalLogger = null optionalposition: 2
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 requiredposition: 0
Target host name or address.
maxHops System.Int32 = 30 optionalposition: 1
Maximum number of hops.
timeout System.Int32 = 4000 optionalposition: 2
Timeout per hop in milliseconds.
logger DomainDetective.InternalLogger = null optionalposition: 3
Optional diagnostic logger.

Returns

Collection of traceroute hops.

{{ include "footer" }}