2using System.Net.NetworkInformation;
3using System.Threading.Tasks;
62 using System.Net.NetworkInformation.Ping Icmp =
new System.
Net.NetworkInformation.Ping();
64 PingOptions Options =
new PingOptions()
73 Response = await Icmp.SendPingAsync(
Argument, 2000,
Ping.data, Options);
78 if (Response.Status == IPStatus.Success)
80 else if (Response.Status == IPStatus.TimedOut ||
81 Response.Status == IPStatus.TimeExceeded ||
82 Response.Status == IPStatus.TtlExpired)
97 else if (Names.Length == 1)
110 while (Response.Status != IPStatus.Success && Options.Ttl < 256);
114 ColumnNames =
new string[] {
"TTL",
"IP",
"Roundtrip",
"Name" }
DNS resolver, as defined in:
static Task< string[]> TryReverseDns(IPAddress Address)
Tries to perform a reverse DNS lookup of an IP address.
A chunked list is a linked list of chunks of objects of type T .
int Count
Number of elements in collection.
void Add(T Item)
Adds an item to the collection.
Class managing a script expression.
Base class for funcions of one scalar variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
int Start
Start position in script expression.
Performs an ICMP Echo to ping a remote endpoint, and return the roundtrip time.
Uses the ICMP Echo protocol to find the route in the IP network to a given host.
override Task< IElement > EvaluateScalarAsync(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
override IElement EvaluateScalar(string Argument, Variables Variables)
Evaluates the function on a scalar argument.
override IElement EvaluateScalar(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
override async Task< IElement > EvaluateScalarAsync(string Argument, Variables Variables)
Evaluates the function on a scalar argument.
override string FunctionName
Name of the function
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
Route(ScriptNode Argument, int Start, int Length, Expression Expression)
Uses the ICMP Echo protocol to find the route in the IP network to a given host.
static readonly ObjectValue Null
Null value.
static Unit Parse(string UnitString)
Parses a unit string.
Basic interface for all types of elements.