Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
/ ping Public archive

Ping CLI application written in C++ using asio and cxxopts

Notifications You must be signed in to change notification settings

john-z-yang/ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ping

Ping CLI application written in C++ using asio and cxxopts.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

Make sure you have g++ and make, and you are on macOS or Linux.

Installing

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

...

Built With

  • asio - For network programming
  • cxxopts - For command line option parsing
  • make - For executable generation

Author

Acknowledgments

About

Ping CLI application written in C++ using asio and cxxopts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published