ping_srcedittion

所属分类:网络编程
开发工具:Visual C++
文件大小:14KB
下载次数:27
上传日期:2006-04-14 18:52:54
上 传 者richral
说明:  该程序在 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)

文件列表:
ping_src (0, 2005-04-11)
ping_src\ping_src (0, 2005-04-11)
ping_src\ping_src\ping.c (10105, 2005-04-11)
ping_src\ping_src\ping.dsp (4297, 2004-03-29)
ping_src\ping_src\ping.dsw (531, 2004-03-29)
ping_src\ping_src\ping.ncb (50176, 2005-04-11)
ping_src\ping_src\ping.opt (48640, 2005-04-11)
ping_src\ping_src\ping.plg (1254, 2004-04-01)
ping_src\ping_src\说明.txt (741, 2005-04-11)

近期下载者

相关文件


收藏者