文件名称:internet-developmeng
-
所属分类:
- 标签属性:
- 上传时间:2013-01-13
-
文件大小:4.76kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写基于数据报套接字进行通信的服务器端和客户端程序,要求:
客户端以字符串的形式循环发送“data0”到“data9”到服务器端;
服务器端收到每个字符串后,获取客户端的IP地址,然后按如下格式显示该字符串:“data0 from xxx.xxx.xxx.xxx” (xxx.xxx.xxx.xxx为IP地址)
同时,服务器回应一个echo信号到客户端,格式为:“XXXXXXXX echo data0” (XXXXXXXX为学号);
客户端收到应答后,显示应答信息。-
Written based on datagram sockets to communicate with the server-side and client program requirements:
Client cycle in the form of a string to send "data0" to to "data9" to the server
After the server receives each string, get the IP address of the client, and then display the string in the following format: "data0 from xxx.xxx.xxx.xxx" (xxx.xxx.xxx.xxx IP address)
The same time, the server responds with an echo signal to the client format: "the XXXXXXXX echo data0 (XXXXXXXX Student ID)
After the client receives the response, the response message.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
internet developmeng.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.