summaryrefslogtreecommitdiffhomepage
path: root/server.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-04 19:24:16 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-04 19:24:16 +0200
commit1fcaed7a34cce8e55bb071d503bb583f715e7d37 (patch)
tree9c6bcaa267a66b902f308ee253a79da874780e55 /server.h
parent938fbe7a2f2f10a3abb530a9463e57fc20f40038 (diff)
Serve configured sockets
Diffstat (limited to 'server.h')
-rw-r--r--server.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/server.h b/server.h
index 5ad21ff..0dcf3dd 100644
--- a/server.h
+++ b/server.h
@@ -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);