An open API service indexing awesome lists of open source software.

https://github.com/divya063/pingapp


https://github.com/divya063/pingapp

golang icmp-ping ping

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

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

```bash
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 `