Skip to content

mianhk/miniweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miniweb

Miniweb is a lightwight HTTP WebServer based on C++11.

Features

  • Use Epoll with ET mode on Linux
  • Use fixed number of thread poll
  • Use task queue triggered by condition variable
  • Use smart pointer

Tested Envoirment

  • OS Platform : Ubuntu 16.04.4 LTS
  • Complier : gcc version 5.4.0

Demo Page

Please go to: www.yuguocong.cn/miniweb

Getting started

# clone reposity to your local path.
git clone [email protected]:mianhk/miniweb.git

# modify config file to change port and so on.
port=5000
path="./www"
thread_num=4

# change to dir
cd src

# compile source code
make

# run miniweb
./miniweb

# or if you want run miniweb background
./miniserver 1>>log &    # the output of the webserver will be in log file

Source Code

What's Next

  • Only solves GET request,need to do more

About

A Lightwight HTTP WebServer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published