diff options
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,9 +1,20 @@ #pragma once +#include <boost/asio/dispatch.hpp> +#include <boost/asio/strand.hpp> + #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 |