Total Pageviews

Tuesday, 14 April 2020

一些web server程序

c和c++混编,编写小型的htp服务器,实现基本html文本传输和cgi功能。
1:Project function:
A simple server to realize the function that customers can quickly request resources on the server
2:Project Description:
 1):Based on multithreading, a TCP server reads requests from sockets and parses them according to HTTP protocol format.

 2):Can make a standard HTTP response (support get and post methods) based on the request.

 3):Mix C and C++ and encapsulate requests and replies

 4):Can independently analyze whether it is a CGI function and deal with it accordingly.

 5):Thread pool is used to manage threads quickly and efficiently.
3:Knowledge points used in the project:
HTTP protocol, TCP protocol, Socket programming, multithreading programming.
Linux environment: vim, Makefile
how to ues : 1:make 2:Executable file + port

----------------------------------------

http_server

from https://github.com/Bit-W/http_server
-----------------------------------------

小型http服务器

frm https://github.com/xiexiankun/http