ignacionr / hussar

A multi-threaded web server framework, pull requests welcome

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, pull requests welcome

License:GNU General Public License v3.0


Languages

Language:C++ 96.7%Language:C 2.2%Language:Makefile 0.8%Language:HTML 0.2%