Skip to content

gprog/dart_ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart-ping

Fork of https://github.com/l7ssha/dart-ping

This tool allows to send pings via Dart program. It uses built-in command ping and parses output of this commands. It properly handles *nix systems and Windows.

Documentation

Future<Stream<PingInfo>> ping(String address, {int times = 4, int packetSize = 64, int interval = 1})

  • address - address of remote host to ping. Can be domain name (google.com) or ip address (127.0.0.1)
  • times - how many ping will be sent
  • packetSize - size of packet in bytes
  • interval - interval between ping
var pings = await ping('google.pl');

pings.listen((ping) {
 print(ping.time.inMilliseconds);
});

Releases

No releases published

Packages

No packages published

Languages