文件名称:TCP
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.54kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
基于TCP协议实现客户端与服务器在约定的端口上进行数据传输。客户端程序仅知道服务器的主机名,并不知道服务器的IP地址。
客户端
1从命令行输入服务器的的主机名连接到服务器;
2获取本机的相关信息包括:IP地址、开通的端口、操作系统的名称、本机名称列表、操作系统版本号、硬件版本;
3将上述信息进行凯撒加密并发送给服务器;
4接受服务器返回的经处理后的字符串,并显示;
5当用户输入CTRL+D或者“bye”时终止连接并退出。
服务器端
1服务器等待客户连接,连接成功后向客户发送欢迎信息;
2接收该客户的信息,然后解密并显示,并将收到的客户端操作系统版本号信息送回给客户端;
3要求服务器具有同时处理多个客户的能力。-TCP-based client and server to achieve the agreed port for data transmission. Client only know the server s host name, do not know the server s IP address.
Clients
A command line, enter the server s host name to connect to the server
2 to obtain the relevant information, including the machine: IP address, open ports, operating system name, local name of the list, operating system version, hardware version
3 Caesar the above information is encrypted and sent to the server
4 Accept the server returns the string after treatment, and display
5 When the user enters CTRL D or "bye" to terminate the connection and exits.
Server-side
1 server waits for client connections, the connection is successful to send welcome message to the customer
2 receives the customer information, and then decrypt and display, and will receive the client operating system version information back to the client
3 requires that the server has the ability to simultaneously handle multiple clie
客户端
1从命令行输入服务器的的主机名连接到服务器;
2获取本机的相关信息包括:IP地址、开通的端口、操作系统的名称、本机名称列表、操作系统版本号、硬件版本;
3将上述信息进行凯撒加密并发送给服务器;
4接受服务器返回的经处理后的字符串,并显示;
5当用户输入CTRL+D或者“bye”时终止连接并退出。
服务器端
1服务器等待客户连接,连接成功后向客户发送欢迎信息;
2接收该客户的信息,然后解密并显示,并将收到的客户端操作系统版本号信息送回给客户端;
3要求服务器具有同时处理多个客户的能力。-TCP-based client and server to achieve the agreed port for data transmission. Client only know the server s host name, do not know the server s IP address.
Clients
A command line, enter the server s host name to connect to the server
2 to obtain the relevant information, including the machine: IP address, open ports, operating system name, local name of the list, operating system version, hardware version
3 Caesar the above information is encrypted and sent to the server
4 Accept the server returns the string after treatment, and display
5 When the user enters CTRL D or "bye" to terminate the connection and exits.
Server-side
1 server waits for client connections, the connection is successful to send welcome message to the customer
2 receives the customer information, and then decrypt and display, and will receive the client operating system version information back to the client
3 requires that the server has the ability to simultaneously handle multiple clie
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TCP.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.