From 1fcaed7a34cce8e55bb071d503bb583f715e7d37 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Apr 2020 19:24:16 +0200 Subject: Serve configured sockets --- http.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'http.h') diff --git a/http.h b/http.h index 229d48e..d98170d 100644 --- a/http.h +++ b/http.h @@ -1,9 +1,20 @@ #pragma once +#include +#include + #include "config.h" +#include "server.h" namespace HTTP { -int server(Config& config); +class Server: public ::Server +{ + const Socket& m_socket; +public: + Server(Config& config, boost::asio::io_context& ioc, const Socket& socket); + virtual ~Server(); + int start() override; +}; } // namespace HTTP -- cgit v1.2.3