Goalng uses the ping command to detect whether the network is connected and analyze network faults.
Ping tests the network by sending test packets to the target host to see if there is a response and count the response time.
The Ping program is designed using the original socket and ICMP. The function of makePingRequest () is to generate the ICMP request packet, the function of parsePingReply () is to parse the response packet sent back by the target host, and the function of elapsedTime () is to calculate the round-trip time of ICMP packets.
Http://www.360doc.com/showweb/0/0/860282418.aspx
Zhengzhou Infertility Hospital: http://jbk.39.net/yiyuanzaixian/zztjyy/
Enter the command Ping www.hemadaili.com