实验四 Web服务器1-socket编程

基于华为鲲鹏云服务器CentOS中(或Ubuntu),使用Linux Socket实现:
1. time服务器的客户端服务器,提交程序运行截图
2. echo服务器的客户端服务器,提交程序运行截图,服务器把客户端传进来的内容加入“服务器进程pid  你的学号 姓名 echo :”返回给客户端
3. 服务器部署到华为云服务器,客户端用Ubuntu虚拟机。
4. 要用多线程或者多进程实现,至少连接两个客户端。
5. 把服务器部署到试验箱。(加分项)

1. time服务器的客户端服务器,提交程序运行截图



代码链接:
https://gitee.com/two_thousand_and_thirteen/zx-code/issues/I4ITIX
https://gitee.com/two_thousand_and_thirteen/zx-code/issues/I4ITJ3

2. echo服务器的客户端服务器,提交程序运行截图,服务器把客户端传进来的内容加入“服务器进程pid  你的学号 姓名 echo :”返回给客户端



 代码链接:
https://gitee.com/two_thousand_and_thirteen/zx-code/issues/I4ITP2
https://gitee.com/two_thousand_and_thirteen/zx-code/issues/I4ITP8

3. 服务器部署到华为云服务器,客户端用Ubuntu虚拟机。

客户端运行结果

服务器显示结果

posted @ 2021-11-29 11:30  张灯结彩,潇潇暮雨  阅读(149)  评论(0编辑  收藏  举报