联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2023-11-29 09:25

INTERNET AND THE WORLD WIDE WEB

Assignment 2: Web Server

I. Assignment Description and Requirements

Students are required to develop a Web Server using Windows Socket Programming

C++. The program should be able to serve multiple requests concurrently from

different Web Browsers. The Web document stored in the Web Server could be an

HTML file, image, or any other resource. The sample programs (namely, “server.cpp”

and “client.cpp”) can be downloaded from the course Web site. The following is the

illustration of the interactions between server and client:

(1) A user inputs the IP address of the Web Server in the address bar of a Web

Browser. The Web Browser will make a request to the Web Server as follows:

GET /index.html HTTP/1.0

(2) The Web Server should accept the request and give a proper response to the Web

Browser as follows:

HTTP/1.0 200 OK

Content-Type: TEXT/HMTL

Content-Length: 100

...

(3) When the Web Browser receives the requested Web Page, it will interpret the

content and display it on the screen.

II. Assignment Submission

(1) This is a group assignment (at most four members).

(2) You should submit the source codes (in a single compressed file) to iSpace on or

before the 8th of December, 2023 (Friday, before 8:00 a.m.).

(3) Each group is required to give a 10-minute English presentation with a

demonstration in Week 12 and 13.


相关文章

版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp