|
我知道这里有很多高手,有谁能帮我修改一下服务器与用户的代码.当在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. |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|