summaryrefslogtreecommitdiffhomepage
path: root/server.h
diff options
context:
space:
mode:
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);