Ping is hopefully fully functional or close to it. Print statements are properly formatted and the only glaring error is the 0 or -1 times given by the read.