首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
Comp 2322代写、Python/Java程序代做
项目预算:
开发周期:
发布时间:
要求地区:
Comp 2322 Computer Networking
Project: Multi-thread Web Server
Due time: 11:59pm, April 21, 2024, Sunday
Total marks: 100 marks
Project objectives
This project aims to develop a socket program to implement a Web service using the
HTTP protocol.
Design requirements
In this project, you are required to develop a multi-threaded Web server in Python that is
capable of processing HTTP requests sent from browsers or some other client programs.
This multi-threaded program will be able to handle multiple requests at the same time.
Specifically, your Web server will
(i) create a connection socket when contacted by a client (browser);
(ii) receive the HTTP request from this connection;
(iii) parse the request to determine the specific file being requested;
(iv) get the requested file from the server’s file system;
(v) create an HTTP response message consisting of the requested file preceded by
header lines;
(vi) send the response over the TCP connection to the requesting client. If the client
requests a file that is not present in your server, your server should return a “404
Not Found” error message.
Your task is to implement the server program, run your server program, and then test
your server program by sending requests from the client programs running on different
hosts. You may run the server on your own computer, using the IP address of 127.0.0.1. If
you run your server on a host that already has a Web server running on it, then you should
use a different port than port 80 for your Web server.
You can develop your code in two stages. In the first stage, you can simply implement the
server program to receive the HTTP request messages and display the contents. After this
is running properly, you can add the code to generate appropriate responses in the second
stage. The Web server needs a log file to record statistics of the client requests. Each
request corresponds to one line of record in the log. Write down client hostname/IP
address, access time, requested file name and response type for each record. Your Web
server also needs to handle some simple errors, such as web-page not found.
You can use either Python, Java or C/C++ languages for the project. When implementing
the Web server, you are required to use basic socket programming classes to build the
Web server from scratch instead of using the HTTPServer class directly.
Submission requirements
Each student needs to submit a project package to Learn@PolyU, containing the
following documents:
x A project report that contains
o A cover page includes your name and student number;
o A summary of your design and implementation of the server program;
o A demonstration of executing your program and screen capturing of results of
all functions;
o A log file that records the historical information about the client requests and
server responses.
x Complete source code
o Your code should be commented appropriately.
x A README text file of how to compile and run your program.
The due time of the project is 11:59pm, April 21, 2024, Sunday, determined by
Learn@PolyU. Do not challenge this time and submit your project package a little
earlier. Late submission will cause the marks deducted 25% per day.
Assessment rubrics
The following rubrics will be used to evaluate your project quality and to determine
your grade (100 marks):
ms
YNNNMM一 一一一一 一一一一 一一
x Design and implement the Web server program to support the following functions
(70 marks)
o Multi-threaded Web server (5 marks)
o Proper request and response message exchanges (5 marks)
o GET command for both text files and image files (10 marks, 5 marks each)
o HEAD command (10 marks)
o Four types of response statuses ONLY, including 200 OK, 400 Bad Request,
404 File Not Found, 304 Not Modified (20 marks, 5 marks each)
o Handle Last-Modified and If-Modified-Since header fields (10 marks)
o Handle Connection header field for both HTTP persistent connection
(keep-alive) and non-persistent connection (close) (10 marks, 5 marks each)
x Quality of your project’s report (25 marks)
o A good summary of your design and implementation of the server program
(10 marks)
o A full demonstration of executing your program and screen capturing of
results of all functions (5 marks)
o A complete log file (5 marks)
o A clear README text file (5 marks)
x Quality of your project’s source code (5 marks)
o Complete source code for the project
o Good naming and coding conventions used in your source code
o Compile the source code successfully
o Execute the program without runtime errors
Comp 2322 Computer Networking
Project Marking Sheet
Student Information Name Student ID
TA Information
Check List Marks
Design and implement the Web server program (70 marks)
o Multi-threaded Web server (5 marks)
o Proper request and response message exchanges (5 marks)
o GET command for both text files and image files (10 marks)
o HEAD command (10 marks)
o Four types of response statuses ONLY (20 marks)
o Handle Last-Modified and If-Modified-Since header fields (10 marks)
o Handle Connection header field (10 marks)
Quality of your project’s report (25 marks)
o A good summary of your design and implementation (10 marks)
o A full demonstration of executing your program and screen capturing of
results of all functions (5 marks)
o A complete log file (5 marks)
o A clear README text file (5 marks)
Quality of your project’s source code (5 marks)
o Complete source code for the project
o Good naming and coding conventions used in your source code
o Compile the source code successfully
o Execute the program without runtime errors
Total
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
data程序代写、代做c/c++编程语...
2024-05-17
data程序代写、代做python编程...
2024-05-17
program代做、c/c++,python程...
2024-05-17
代写math 3333 3.0 - winter 2...
2024-05-17
代做seng6110 programming ass...
2024-05-17
代写seng6110 object oriented...
2024-05-17
代写comp828: statistical pro...
2024-05-17
代做culture and society调试数...
2024-05-17
代做comp 4911 winter 2024 as...
2024-05-17
代做lh physical iiib / 03 33...
2024-05-17
代做3032ict big data analyti...
2024-05-17
代写comp4702 report代写留学生...
2024-05-17
代写fin2020 hw6代写c/c++编程
2024-05-17
热点标签
fit2004
fit3152
mec208
econ20120
cpt304
econ2101
econ0051
engi4547
econ1048
eengm2510
fit1008
7033mkt
ec2066
cct380h5f
man00019m
mech265001
fin2020
fit9137
n1542
csc4140
math6119
comp1710
fina864
csys5020
busi4412
math5007
2702ict
dts204tc
comp2003j
cosc2673
ecmt2150
bff3121–
comu7000
stat6118
comp814
acc202
ematm0067
bit233
ecs776p
600543
bpln0025
comp3400
econ7030
159.342 ‐ operating
mang6134
math1005/math6005
geog5404m
comp1710/6780
infs 2042
inf6028
bman30702
math0002
msci242l
mgt11001
com00177m
bman71282
fit2001
cpt210
159.341
econ7310
comp3221
comp10002
cpt206
ecmt1010
finm081
econ2005
cpt202
fit3094
socs0030
data7201
data2x01
mn-3507
mat246h1
ib2d90
ib3j80
acc207
comp90007
compx518-24a
fit1050
info1111
acct2201
buad801
compsci369
cse 332s
info1110
math1033
scie1000
eeee2057
math4063
cmt219
econ5074
eng5009
csse2310/csse7231
ec333
econ0001
cpt204
elec4630
ma117
dts104tc
comp2017
640481
csit128
eco000109m
finc5090
ggr202h5f
nbs8295
4ssmn902
chc6171
dsa1002
ebu6304
comp1021
csci-ua.202
com6511
ma416
mec206
iom209
bism7202
idepg001
cpt106
comp1212
ecom209
math1062
mn-3526
fnce3000
fmhu5002
psyc10003
fina2222
be631-6-sp/1
finc2011
37989
5aaob204
citx1401
econ0028
bsan3204
comp9123
cmt218
itp122
qbus6820
ecmt1020
bus0117
soft3202/comp9202
basc0057
mecm30013
aem4060
acb1120
comp2123
econ2151
ecmt6006
inmr77
com 5140
ocmp5328
comp1039
had7002h
cmt309
asb-3715
elec373
cpt204-2324
be631-6-sp
econ3016
mast10007
buss6002
comp4403
comp30023
finm1416
csc-30002
6qqmn971
fin668
mnfg309
inft2031
cits1402
comp2011
eecs 3221
ebu4201
ct60a9600
com336
8pro102
econ7300
comp3425
comp8410
comp222
finm8007
comp2006
comp26020
comp1721
eeen3007j
cis432
csci251
comp5125m
com398sust
finm7405
econ7021
fin600
infs4205/7205
mktg2510-
32022
mth6158
comp328
finn41615
2024
mec302
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!