LatencyGG-DotNET 0.2.4

.NET 5.0 .NET Framework 4.6
dotnet add package LatencyGG-DotNET --version 0.2.4
NuGet\Install-Package LatencyGG-DotNET -Version 0.2.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LatencyGG-DotNET" Version="0.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LatencyGG-DotNET --version 0.2.4
#r "nuget: LatencyGG-DotNET, 0.2.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LatencyGG-DotNET as a Cake Addin
#addin nuget:?package=LatencyGG-DotNET&version=0.2.4

// Install LatencyGG-DotNET as a Cake Tool
#tool nuget:?package=LatencyGG-DotNET&version=0.2.4

LatencyGG Probe Library for C#

A C# library for latency measurements using the LatencyGG network.


See the example for recommended usage.


First create an instance of LatencyGG specifying the type of AF (eINET for IPv4 eINET6 for IPV6) and the timeout limit for pings.

LatencyGG.LatencyGG latency = new LatencyGG.LatencyGG(LatencyGG.AF.eINET, 2000);

Then create instances of DataPing, specifying the target_ip (beacon address), own_ip (user public ip), ident(as provided by the Client API), token(if provided by the Client API, "" if not), and dpversion (3 if token supplied 2 if not).

LatencyGG.DataPing dataPing = new LatencyGG.DataPing(targetIp, ownIp, ident, token, dpversion);

Next, add all of the pings you wish to run simultaneously (for accurate measurements don't run more than 10 measurements simultaneously).


Finally, run the measurement.


If you need to terminate a running measurement before it is complete, discarding the measurements call Kill().


To check if all measurements are complete you can poll the IsComplete() method.

if (latency.IsComplete()) {
    // Do something

Results can be retrieved via a Map-like interface

LatencyGG.DataPing pingResult = latency[targetIp];
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed. 
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.4 428 12/22/2021
0.2.2 421 12/17/2021
0.2.1 391 12/17/2021
0.2.0 368 12/17/2021