- hackers don't read source code
All one has to do is look at the source for ping and questions like these are answered.
All one has to do is look at the source for ping and questions like these are answered.
However, the value of looking at ping is it let's you see a simple example of a lot of networking system calls which you can then dig into. I had a class project to write a simple web-server and text based browser in C and ping was actually a great place to start.