summaryrefslogtreecommitdiffhomepage
path: root/http.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 /http.h
parent938fbe7a2f2f10a3abb530a9463e57fc20f40038 (diff)
Serve configured sockets
Diffstat (limited to 'http.h')
-rw-r--r--http.h13
1 files changed, 12 insertions, 1 deletions
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 <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