A ping program that uses TCP sockets