文件名称:ping_srcedittion
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 14kb
- 下载次数:
- 0次
- 提 供 者:
- 赵*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该程序在 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个地址。
要实现的功能参数:
1.n 参数 设定发送回显请求的数量
2.l 参数 设定选项数据的填充字节数
3.t 参数 持续的发送回显请求,直到用户按下Control-C停止
4 w 参数 设定接收超时的时间,以毫秒为单位
参数的具体说明可以参考windows自带的ping程序-the program in Windows 2000 SP4 Pro compiler under through debugging (Visual C 6.0 IDE environment). Winsock2 need support. 1. The procedure adopted protocols of the original socket programming, the basic implementation of Ping function, Use : ping host, the default four consecutive send the request back significantly. 2. The procedure for the first ICMP using the definition of non-standard forms. Upcoming options to preserve the timestamp data for the first four bytes are defined as ICMP first part, the first such ICMP was defined as 12 bytes. This is done primarily to the realization of programming and understanding for it. 3. Under customary ICMP first marker Address field filled with the process ID. 4. The program achieved in the first record of IP routing RR functions, the most record
需要Winsock2支持。
1.该程序采用了winsock的原始套接字编程,实现了基本的Ping功能,使用方法:ping host,默认连续发送4个回显请求。
2.该程序中对ICMP首部的定义采用了非标准形式。即将选项数据中保存时间戳的头4个字节也定义为ICMP首部的一部分,这样ICMP首部就被定义为12个字节。这样主要做主要是为了编程的实现与理解上的方便。
3.根据习惯ICMP首部的标示符字段填充了进程ID。
4.该程序实现了在IP首部记录路由的RR功能,最多记录9个地址。
要实现的功能参数:
1.n 参数 设定发送回显请求的数量
2.l 参数 设定选项数据的填充字节数
3.t 参数 持续的发送回显请求,直到用户按下Control-C停止
4 w 参数 设定接收超时的时间,以毫秒为单位
参数的具体说明可以参考windows自带的ping程序-the program in Windows 2000 SP4 Pro compiler under through debugging (Visual C 6.0 IDE environment). Winsock2 need support. 1. The procedure adopted protocols of the original socket programming, the basic implementation of Ping function, Use : ping host, the default four consecutive send the request back significantly. 2. The procedure for the first ICMP using the definition of non-standard forms. Upcoming options to preserve the timestamp data for the first four bytes are defined as ICMP first part, the first such ICMP was defined as 12 bytes. This is done primarily to the realization of programming and understanding for it. 3. Under customary ICMP first marker Address field filled with the process ID. 4. The program achieved in the first record of IP routing RR functions, the most record
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ping_src
........\ping_src
........\........\ping.c
........\........\ping.dsp
........\........\ping.dsw
........\........\ping.ncb
........\........\ping.opt
........\........\ping.plg
........\........\说明.txt
........\ping_src
........\........\ping.c
........\........\ping.dsp
........\........\ping.dsw
........\........\ping.ncb
........\........\ping.opt
........\........\ping.plg
........\........\说明.txt