summaryrefslogtreecommitdiffhomepage
path: root/server.h
blob: 0dcf3dd75882a03e7d9299dcd013c29f84500f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "config.h"

using namespace std::string_literals;

static const std::string VersionString{ "Webserver "s + std::string{VERSION} };

class Server
{
protected:
 Config& m_config;
 boost::asio::io_context& m_ioc;

public:
 Server(Config& config, boost::asio::io_context& ioc);
 virtual ~Server();
 virtual int start() = 0;
};

int server(Config& config);