文件名称:ping
介绍说明--下载内容均来自于网络,请自行研究使用
该程序在 Windows 2000 Pro+SP4 下编译调试通过(Visual C++ 6.0 IDE环境)。
需要Winsock2支持。
1.该程序采用了winsock的原始套接字编程,实现了基本的Ping功能,使用方法:ping host,默认连续发送4个回显请求。
2.该程序中对ICMP首部的定义采用了非标准形式。即将选项数据中保存时间戳的头4个字节也定义为ICMP首部的一部分,这样ICMP首部就被定义为12个字节。这样主要做主要是为了编程的实现与理解上的方便。
3.根据习惯ICMP首部的标示符字段填充了进程ID。
4.该程序实现了在IP首部记录路由的RR功能,最多记录9个地址。-The program in Windows 2000 Pro+ SP4 adopted under the compiler debugging (Visual C++ 6.0 IDE environment). Winsock2 support needs. 1. The program uses the original socket winsock programming, to achieve the basic Ping function, use: ping host, the default for sending echo request 4. 2. The program of the first definition of ICMP uses non-standard forms. Options data is about to save the first timestamp 4 bytes are also defined as the first part of ICMP, so that the first ICMP was defined as 12 bytes. Mainly do so primarily to the realization and understanding of programming convenience. 3. In accordance with customary ICMP identifier of the first field filled with the process ID. 4. The program achieved the first record in the IP routing RR function, a maximum of nine address records.
需要Winsock2支持。
1.该程序采用了winsock的原始套接字编程,实现了基本的Ping功能,使用方法:ping host,默认连续发送4个回显请求。
2.该程序中对ICMP首部的定义采用了非标准形式。即将选项数据中保存时间戳的头4个字节也定义为ICMP首部的一部分,这样ICMP首部就被定义为12个字节。这样主要做主要是为了编程的实现与理解上的方便。
3.根据习惯ICMP首部的标示符字段填充了进程ID。
4.该程序实现了在IP首部记录路由的RR功能,最多记录9个地址。-The program in Windows 2000 Pro+ SP4 adopted under the compiler debugging (Visual C++ 6.0 IDE environment). Winsock2 support needs. 1. The program uses the original socket winsock programming, to achieve the basic Ping function, use: ping host, the default for sending echo request 4. 2. The program of the first definition of ICMP uses non-standard forms. Options data is about to save the first timestamp 4 bytes are also defined as the first part of ICMP, so that the first ICMP was defined as 12 bytes. Mainly do so primarily to the realization and understanding of programming convenience. 3. In accordance with customary ICMP identifier of the first field filled with the process ID. 4. The program achieved the first record in the IP routing RR function, a maximum of nine address records.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ping_src
........\ping.c
........\ping.dsp
........\ping.dsw
........\ping.ncb
........\ping.opt
........\ping.plg
........\说明.txt
........\ping.c
........\ping.dsp
........\ping.dsw
........\ping.ncb
........\ping.opt
........\ping.plg
........\说明.txt