socket测试-3
基于socket 实现daytime(13)服务器(端口我们使用13+后三位学号)和客户端
服务器响应消息格式是
“
客户端IP:XXXX
服务器实现者学号:XXXXXXXX
当前时间: XX:XX:XX
”
上方提交代码
提交一个客户端至少查询三次时间的截图测试截图
提交至少两个客户端查询时间的截图测试截图
一、测试代码
代码链接:
client.c
https://gitee.com/two_thousand_and_thirteen/zx-code/blob/master/client.c
server.c
https://gitee.com/two_thousand_and_thirteen/zx-code/blob/master/server.c
csapp.c
https://gitee.com/two_thousand_and_thirteen/zx-code/blob/master/csapp.c
csapp.h
https://gitee.com/two_thousand_and_thirteen/zx-code/blob/master/csapp.h
echo.c
https://gitee.com/two_thousand_and_thirteen/zx-code/blob/master/echo.c
二、客户端查询截图
![]()
三、两个客户端查询截图
![]()

 
                     
                    
                 
                    
                


 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号