https://github.com/divya063/pingapp
https://github.com/divya063/pingapp
golang icmp-ping ping
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/divya063/pingapp
- Owner: Divya063
- License: apache-2.0
- Created: 2020-04-20T13:16:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T21:34:14.000Z (about 6 years ago)
- Last Synced: 2025-01-22T06:58:04.950Z (over 1 year ago)
- Topics: golang, icmp-ping, ping
- Language: Go
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
- Code of conduct: CODE_OF_CONDUCT.md
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 `