Skip to content

weishuai-GitHub/SimpleWebServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP实现简单的WebServer

框架

框架图

项目结构

  • root: 静态资源
  • config.yaml: 配置文件
  • main.cpp: 主程序
  • src: 源码(主要模块)
    • webserver: 创建服务器,开启监听
    • http_conn: 解析http请求
    • threadpool: http请求线程池,启动多线程处理http请求
    • sql_connection_pool: 数据库连接池,创建多个数据库连接

项目运行

mkdir build
cd build && cmake ..
make && cd ..
./bin/main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published