IsAliveLib 0.0.22
dotnet add package IsAliveLib --version 0.0.22
NuGet\Install-Package IsAliveLib -Version 0.0.22
<PackageReference Include="IsAliveLib" Version="0.0.22" />
paket add IsAliveLib --version 0.0.22
#r "nuget: IsAliveLib, 0.0.22"
// Install IsAliveLib as a Cake Addin
#addin nuget:?package=IsAliveLib&version=0.0.22
// Install IsAliveLib as a Cake Tool
#tool nuget:?package=IsAliveLib&version=0.0.22
IsAlive
Simple library for checking network services are availability on remote host, support ICMP (Ping), TCP, UDP
This Library can help monitor remote network services by checking connectivity of ports and ip address, it's support 3 main protocols: ICMP as ping, TCP and UDP (must receive some data for confirmation).
Usage:
static void Main(string[] args)
{
IsAlive isAlive = new IsAlive(3000);
IPAddress address = IPAddress.Parse("8.8.8.8");
IsAlivePayload payload = isAlive.check(address, 0, IsAlive.NETWORK_PROTOCOL.ICMP);
print(payload);
payload = isAlive.check(address, 80, IsAlive.NETWORK_PROTOCOL.TCP);
print(payload);
payload = isAlive.check(address, 80, IsAlive.NETWORK_PROTOCOL.UDP);
print(payload);
Console.ReadLine();
}
static void print(IsAlivePayload payload) {
Console.WriteLine("Response - " + payload.host.ToString()
+ ":" + payload.port.ToString() + " " + payload.protocol.ToString() + " ->" + payload.success.ToString());
}
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.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.0.22 | 676 | 7/4/2019 |
This Library can help monitor remote network services by checking connectivity of ports and ip address, it's support 3 protocols: ICMP as ping, TCP and UDP (must receive some data for confirmation).