QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1421|回复: 8

求救,一条有关外国的服务器问题.我知道这里有很多高手.在线等

[复制链接]
发表于 2006-4-16 00:14:19 | 显示全部楼层 |阅读模式
我知道这里有很多高手,有谁能帮我修改一下服务器与用户的代码.当在LINUX运行用户与服务器时,用户能通过服务器查找到有关的的资料(一个文档里有记录不同的资料),当用户输入年份时,服务器会连接一个文档,读取里面的资料,选择适当的资料显示给用户看.
题目:
Objectives:

1. Develop the ability to write robust programs, integrating techniques we studied in this course, such as sockets, threads, etc.
2. Develop the ability to design usable software.
3. Practice writing skills.
4. Practice oral presentation skills.
5. Practice teamwork.
Project goals

you will develop an infrastructure that enables a searching of book information. your infrastructure will permit users to submit a request to the server. The server will
then distribute the work to workers, each of whom will perform a smaller number of computations. The result will then be combined by the server and passed back to the client.

the important features I wish to see are:

1. Facility for a client to send a large chunk of work to a server,

2. the server should be able to split that work into smaller pieces and hand them over to individual workers,

3. the server collects the results from indivfidual workers and gives the solution back to the client. you have a lot of freedom in the specific details of your
project. of course, you should get your plan approved by me. In particular, I want to ensure that you demonstrate your proficiency
in using multiple processes and threads, and communicating using sockets.

Part 1

Devise a protocol for the exchange of a book information between a client and a server.You should study existing protocols(eg SMTP.POP3 etc)
which exchange data and outline a protocol for the exchange of the data held within a book information on both sides (client and server). You will need to consider error/success
notification. Remember that protocols are deliberately kept simple. Look for RFCs (Request For Comments) for some existing protocols to see the sorts of thing you should be looking at.
Remember that such protocols are for computer process to computer process communication, not as human interaction.

Part 2

Implement your protocol using SOCKETs in a simple client server program, noting the following:

1. You should use the protocol you devised in part 1
2. The data on the server should be stored in a database table access by the server (via JDBC), rather than the vector given in the original code. This allows for a permanent storage. You
should create this table yourself and populate it with a suitable test data.
3. your client code does not need a GUI, simply make it a test program to access the server with a variety of command to store/retrieve books.

Deadlines
1. Submit hardcopy of a two-page outline of what you plan to do, and include the names of the group members.
2. submit hardcopy of a one-page report, outlining what you have accomplished for part 1.
3. Submit hardcopies of (1) a user documentation and (2) technical documentation,
4. submit files for all project source code.

Grading criteria
1. Correctness and robustness of your code
2. Use, and integration, of techniques we learned in class, such as sockets, threads, etc.
3. Usability of the software, and inclusion of features that make it feasible in realistic situations.
4. Written reports.
5. oral presentation.
6. team work.

Please note that the grade will be a combination of the accomplsment of the group, and your individual accomplishment. Therefore, each person in the group might get a different grade.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2006-4-16 12:12:47 | 显示全部楼层
高手去了哪里啊?有点捻
回复

使用道具 举报

发表于 2006-4-17 13:14:50 | 显示全部楼层
有具体问题就问
回复

使用道具 举报

 楼主| 发表于 2006-4-17 21:53:40 | 显示全部楼层
具体问题已经发了出来.算啦,我已经放弃啦,估计也没人会做吧.谢谢版主的回复
回复

使用道具 举报

 楼主| 发表于 2006-4-17 23:16:14 | 显示全部楼层
题目已经说明白啦,可能是英语吧.大家还不能看明白.题目大约的要求是编写一个服务器与客户端代码.然后写一个TXT文档,TXT文档中写书的名字,作者与时间,(例如
title:Gas and Electricity Market Statistics
date:2006
Author: National Audit Office (NAO)
ISBN:111111

title:Labour market trends
date:2006
Author: Judi Morgan
ISBN:111112

title:The Export Control
date:2006
Author: Great Britain
ISBN:111113
)
然后要求服务器的代码连接这个TXT文档,将它分类.当客户端连接服务器时,服务器要有几个选项给客户端(title查找,date查找,author查找,ISBN查找).客户可根据自已的需要先择,例如客户先择ISBN查找时,服务器要求客户输入ISBN码,要客户输入:111113时.服务器分类TXT文档,然后将信息传送给客户端,客户端就会显示:
title:The Export Control
date:2006
Author: Great Britain
ISBN:111113
.
回复

使用道具 举报

发表于 2006-4-18 10:25:00 | 显示全部楼层
按功能分不就是两个功能吗:
1 client/server的连接与交互
2 文档的分析
关于1,网上的资料太多
关于2,自己写就是了。
回复

使用道具 举报

 楼主| 发表于 2006-4-18 21:51:08 | 显示全部楼层
我现在client和server已经写出来啦,但文档分析不会加到client和server.这就是我求帮助的原因
回复

使用道具 举报

发表于 2006-4-19 09:19:41 | 显示全部楼层
这里是动口少动手,想让别人直接给你写代码可能性不大,除非别人很有时间。
“文档的分析”这也叫具体问题么?
回复

使用道具 举报

发表于 2006-4-20 20:28:42 | 显示全部楼层
是啊。这个SB真TMD的S
既然还让别人给他写代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 18:24 , Processed in 0.051930 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表