Mordinel / hussar

A multi-threaded web server framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hussar

A threaded web server

The default configuration can be changed in main.cpp

Here is an example of usage in your own code

building the file web server

git clone https://github.com/SOROM2/hussar.git --recurse-submodules
cd hussar
make

running as a file web server

./hussar -h
Usage: ./hussar [-hv -i <ipv4> -p <port> -t <thread count> -d <document root> -k <ssl private key> -c <ssl certificate>]
        -h              Display this help
        -v              Verbose console output
        -i <IPV4>       Ipv4 to bind to
        -p <PORT>       Port to listen on
        -t <THREAD>     Threads to use
        -d <DIR>        Document root directory
        -k <key.pem>    SSL Private key
        -c <cert.pem>   SSL Certificate

building the example

git clone https://github.com/SOROM2/hussar.git --recurse-submodules
cd hussar
make example
make certs

running the example

./hello_world

About

A multi-threaded web server framework

License:GNU General Public License v3.0


Languages

Language:C++ 97.0%Language:C 2.1%Language:Makefile 0.7%Language:HTML 0.1%