Skip to content

jingxa/Oh-Server

 
 

Repository files navigation

Oh-Server

一个用C++写的简单的epoll多线程http服务器。

httpserver.cpp 主函数文件

locker.cpplocker.h 互斥锁、信号量和条件变量的封装类

threadpool.h 线程池类模板

http_parser.cpphttp_parser.h 解析http请求的类

http_process.cpphttp_process.h 处理http请求的类

Usage

make

./Oh-Server <port>

More details

这是我以前写的一个版本,我又把它重写了,新建了一个repo在隔壁的Servant。更多详细信息请参考我的博客

About

A simple http server written by C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 97.8%
  • Makefile 1.7%
  • HTML 0.5%