Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Libevent Http Server

This project will show how to make a Simple HTTP Server by using Libevent in unix environment under 100 lines of codes for Educational Purposes.

Warning

The main goal of this project is to show how to use libevent to create an event driven web server. Thus, I tried to make this project as simple as possible (by ignoring security factors). Therfore, this project contains some security issues (including non validation of users' input).

How to compile

g++ server.cpp -o server -std=c++11 -levent

How to run

./server [HOME DIR] [PORT]

usage example

./server /var/www/html 8080

License

MIT License.

About

Simple HTTP Server using Libevent (UNIX)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages