Skip to content

Divya063/PingApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PingApp

A Ping CLI application. The CLI app accepts a hostname or an IP address as its argument and provide support for both IPv4 and IPv6. It can send ICMP "echo requests" in an infinite loop to the target while receiving "echo reply" messages, if count flag is not mentioned. It reports loss and RTT times for each sent message.

Setup

go install .

Usage

sudo pingApp ping host [--count] [--interval] 

Examples:

# ping google continuously
$ sudo pingApp ping google.com
# ping google 5 times
$ sudo pingApp ping --count 5 google.com
# ping google 5 times at 2 seconds intervals
$ sudo pingApp ping google.com  --count 3 --interval 2

To run the tests use the command: sudo go test

About

No description or website provided.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages