文件名称:1
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-07-01
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- n***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1.已知参数:目的节点IP地址或主机名
2.设计要求:通过原始套接字编程,模拟Ping命令,实现其基本功能,即输入一个IP地址或一段IP地址的范围,分别测试其中每个IP地址所对应主机的可达性,并返回耗时、生存时间等参数,并统计成功发送和回送的Ping报文。
2.1初始化Windows Sockets网络环境;
2.2解析命令行参数,构造目的端socket地址;
2.3定义IP、ICMP报文;
2.4接收ICMP差错报文并进行解析。
3. 程序实现主要用到Java网络包中的类InetAddress。
-1 Known parameters: the destination node IP address or host name 2 Design requirements: through raw socket programming, simulation Ping command, to achieve its basic functions, namely Enter an IP address or a range of IP addresses, each of which were tested an IP address corresponding to the host reachability and return to time-consuming, survival time and other parameters, and statistical successfully sent and Ping loopback packets. 2.1 Initialize Windows Sockets network environment 2.2 parse command line arguments, the destination socket address structure 2.3 Defining IP, ICMP packets 2.4 ICMP error packets received and parsed. 3 procedures used to achieve the main classes in the Java network packet InetAddress.
2.设计要求:通过原始套接字编程,模拟Ping命令,实现其基本功能,即输入一个IP地址或一段IP地址的范围,分别测试其中每个IP地址所对应主机的可达性,并返回耗时、生存时间等参数,并统计成功发送和回送的Ping报文。
2.1初始化Windows Sockets网络环境;
2.2解析命令行参数,构造目的端socket地址;
2.3定义IP、ICMP报文;
2.4接收ICMP差错报文并进行解析。
3. 程序实现主要用到Java网络包中的类InetAddress。
-1 Known parameters: the destination node IP address or host name 2 Design requirements: through raw socket programming, simulation Ping command, to achieve its basic functions, namely Enter an IP address or a range of IP addresses, each of which were tested an IP address corresponding to the host reachability and return to time-consuming, survival time and other parameters, and statistical successfully sent and Ping loopback packets. 2.1 Initialize Windows Sockets network environment 2.2 parse command line arguments, the destination socket address structure 2.3 Defining IP, ICMP packets 2.4 ICMP error packets received and parsed. 3 procedures used to achieve the main classes in the Java network packet InetAddress.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.cpp