There are three ".java" files in my work. You should follow my instructions to complet the task:
1. In "Client.java", I set the default socket port number to "6789". And if you want to connect to the "www.icarnegie.com", you should change the class--- Client's "private static final int socketPort" to "80".
2. When run the Server.java, it doesn't stop running until you terminate it. At this time, if you want to run the Client.java, you should type "java Client localhost" to the console. Then when we send the request from the client, we should input the valid format like this: GET /index.html http/1.0. When the client connects to the server, it's current directory is "c:\www\test\".
3. Run the ThreadedServer.java's method is the same to the previous one.
《ssd8的练习1》
5星 · 超过95%的资源 需积分: 10 86 浏览量
2008-12-31
11:44:57
上传
评论
收藏 8KB RAR 举报
一个人单干
- 粉丝: 0
- 资源: 11
最新资源
- RAG技术知识图谱概览
- VMware Workstation功能强大的桌面虚拟计算机软件
- 中文命名实体识别,采用bilstm+crf模型基于Pytorch实现
- PowerGREP V5.3.3 Retail
- 美赛数学建模算法-使用Matlab实现灰色系统建模GreySystem-国赛-题解.zip
- 基于albert-bilstm-crf架构利用keras框架实现NER
- RegexMagic V2.13.1 Retail
- python-3.6.5-macosx 安装包
- 美赛数学建模算法-使用Matlab实现图论GraphTheory-包括求最短路径-国赛-题解.zip
- RegexBuddy v4.14.1 Retail
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈