diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-04 19:24:16 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-04 19:24:16 +0200 |
commit | 1fcaed7a34cce8e55bb071d503bb583f715e7d37 (patch) | |
tree | 9c6bcaa267a66b902f308ee253a79da874780e55 /server.h | |
parent | 938fbe7a2f2f10a3abb530a9463e57fc20f40038 (diff) |
Serve configured sockets
Diffstat (limited to 'server.h')
-rw-r--r-- | server.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -6,4 +6,16 @@ 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); |