文件名称:UDP
介绍说明--下载内容均来自于网络,请自行研究使用
在两台计算机间完成一个简单的UDP传输。
客户端
(1) 循环从命令行读入一行字符串,并传递给服务器,由服务器对字符串进行反转,并将结果返回给客户端
(2) 客户端显示反转后的字符串
(3) 当客户按下“delete”健后,关闭套接字,结束程序
服务器端
(1) 收到客户端数据包,首先验证数据包源地址是否合法
(2) 接收客户的数据,并显示客户的IP地址和端口号
(3) 接收客户传来的字符串,反转后传递给客户
-Between the two computers to complete a simple UDP transport. Client (1) loop reads a line from the command line string and passed to the server, from server to reverse the string and returns the results to the client (2) the client to display the string after the reverse (3 ) When the customer hits the " delete" health, close the socket, the end of the program server (1) the client receives the packet, first verify that the packet source address is valid (2) to receive customer data, and displays the customer' s IP address and port number (3) to receive a string of customers came, after the reverse pass to the customer
客户端
(1) 循环从命令行读入一行字符串,并传递给服务器,由服务器对字符串进行反转,并将结果返回给客户端
(2) 客户端显示反转后的字符串
(3) 当客户按下“delete”健后,关闭套接字,结束程序
服务器端
(1) 收到客户端数据包,首先验证数据包源地址是否合法
(2) 接收客户的数据,并显示客户的IP地址和端口号
(3) 接收客户传来的字符串,反转后传递给客户
-Between the two computers to complete a simple UDP transport. Client (1) loop reads a line from the command line string and passed to the server, from server to reverse the string and returns the results to the client (2) the client to display the string after the reverse (3 ) When the customer hits the " delete" health, close the socket, the end of the program server (1) the client receives the packet, first verify that the packet source address is valid (2) to receive customer data, and displays the customer' s IP address and port number (3) to receive a string of customers came, after the reverse pass to the customer
(系统自动生成,下载前可以参看下载内容)
下载文件列表
UDP.txt