Categorygithub.com/Divya063/pingApp
repositorypackage
0.0.0-20200429213414-268ac3a82ba7
Repository: https://github.com/divya063/pingapp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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