文件名称:internet-developmeng
介绍说明--下载内容均来自于网络,请自行研究使用
编写基于数据报套接字进行通信的服务器端和客户端程序,要求:
客户端以字符串的形式循环发送“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