ping_win32

Last updated:

0 purchases

ping_win32 Image
ping_win32 Images
Add to Cart

Description:

ping win32

ping_win32 #
A simple wrapper for Win32 IcmpSendEcho2 function.
Although there has been a handful of ping implementations that wraps the command-line ping utility and it supports variety of platforms including Windows, on Windows platform, it does not support locales other than en-US and it results in severe incompatibility with other locales.
ping_win32 is a faster, efficient, and better replacement for such ping implementations on Windows.
Getting started #
dart pub add ping_win32
copied to clipboard
Usage #
PingWin32.ping is the only one function provided by the library:
import 'dart:io';

import 'package:ping_win32/ping_win32.dart';

void main() async {
final result = await PingWin32.ping(
InternetAddress.tryParse('192.168.10.12')!,
timeout: Duration(seconds: 10),
);
print(result);
}
copied to clipboard
The returned value is in IcmpResult class and it has status, roundTripTime, and ttl.
References #

ping_win32 - pub.dev
IcmpSendEcho2 function

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.