After trying to create an ICMP socket, a UDP socket, I decided it was time to try other crates that offered cross platform ICMP sockets. One such crate was ping-rs. I included it in the project to send ping requests and receive the replies.
Then I wrote the logic for calculating the no. of packets that were sent, received and lost. Calculated the maximum, minimum and average RTT for the entire ping command.
Then formatted the output and added colour to it.
Wrote the README.md file.
Published the application to cargo. You can try it out by cargo install pingrs.
Created a GitHub release and ready to ship!!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.