▍1. 本设计的功能是填充一个TCP数据包,并发送给目的主机。 程序具体要求如下: 1) 以命令行形式运行:SendTCP、source_ip、source_p...
本设计的功能是填充一个TCP数据包,并发送给目的主机。 程序具体要求如下: 1) 以命令行形式运行:SendTCP、source_ip、source_port、dest_ip、dest_port,其中SendTCP是程序名,source_ip为源端IP地址,source_port为源端口号,dest_ip为目的地址,dest_port为目的端口号; 2) 其他的TCP头部参数请自行设定; 3) 数据字段为“This is my homework of network ,I am happy !” 4) 成功发送后在屏幕上输出“Send OK” 。 -The design features are filled with a TCP packet, and send the purpose of the host. Program specific requirements are as follows: 1) to form the command line run: SendTCP, source_ip, source_port, dest_ip, dest_port, which are SendTCP program name, source_ip client IP address as the source, source_port as the source port number, dest_ip for the purpose of the address, dest_port for the purpose of port number 2) the head of other TCP parameters at your own settings 3) data fields for the This is my homework of network, I am happy! 4) successfully sent the output on the screen after the Send OK .