Ping CLI application written in C++ using asio and cxxopts.
These instructions will get you a copy of the project up and running on your local machine.
Make sure you have g++ and make, and you are on macOS or Linux.
Clone this repository (use the --recursive
flag as it contains submodules).
git clone https://github.com/dniwrallets/ping.git --recursive
Navigate to the root and run make, the final executable (ping
) will be in the out
directory.
make
Run the program (note: you may need to be root).
See --help
for more options
sudo out/ping google.com
172.217.8.206:0: seq=0, time=14.372ms:
1 packets transmitted, 0.000% loss
min/avg/max/ = 14.372/14.372/14.372 ms
172.217.8.206:0: seq=1, time=18.273ms:
2 packets transmitted, 0.000% loss
min/avg/max/ = 14.372/16.322/18.273 ms
...
- asio - For network programming
- cxxopts - For command line option parsing
- make - For executable generation
- John Yang - John
- Chris Kohlhoff - asio - chriskohlhoff
- jarro2783 - cxxopt - jarro2783
- Billie Thompson - README.md template - PurpleBooth