文件名称:UDP
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:794byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在两台计算机间完成一个简单的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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.