分类: C/C++
2008-04-23 21:46:32
TCP/IP学习笔记(三)
作者:
一、Ping程序:
先看:
//pingICMP回显请求和回显应答报文格式如下:(以Ping为例)
C:\WINNT\system32>ping svr00804
Pinging svr00804.sccnj.swirebev.com [192.1.8.12] with 32 bytes of data:
Reply from 192.1.8.12: bytes=32 time<10ms TTL=128
Reply from 192.1.8.12: bytes=32 time<10ms TTL=128
Reply from 192.1.8.12: bytes=32 time<10ms TTL=128
Reply from 192.1.8.12: bytes=32 time<10ms TTL=128
Ping statistics for 192.1.8.12:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
类型0或8
给主人留下些什么吧!~~
|