tarweb 0.1.1

io-uring based static file web server, with SNI router
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * Simple main-wrapper for printing exceptions.
 */
#include <cstdlib>
#include <iostream>
#include <stdexcept>

int mainwrap(int argc, char** argv);

int main(int argc, char** argv)
{
    try {
        return mainwrap(argc, argv);
    } catch (const std::exception& e) {
        std::cerr << "Exception: " << e.what() << "\n";
        exit(EXIT_FAILURE);
    }
}