Thanks to visit codestin.com
Credit goes to github.com

Skip to content

C 语言实现的一个 web server,使用 JSON 格式的配置文件,支持静态请求和 PHP 文件,以及GET POST方法。

Notifications You must be signed in to change notification settings

Tanswer/Xserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Programming Model

  1. I/O multiplexing(epoll ET)
  2. Non-blocking I/O 、finite state machine
  3. threadpool

How To Run

please make sure you have cmake installed.

git clone [email protected]:Tanswer/Xserver.git

cd Xserver

./autorun

Complete

  1. http persistent connection
  2. serve static(.html)
  3. support PHP(FastCGI)
  4. timers(MinHeap)
  5. GET / POST
  6. some HTTP/1.1 features

To Do

  1. memory pool
  2. keep-alive(timeout)

webbench

strace 追踪系统调用

About

C 语言实现的一个 web server,使用 JSON 格式的配置文件,支持静态请求和 PHP 文件,以及GET POST方法。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published