summaryrefslogtreecommitdiffstats
path: root/src/lib/http/connection_pool.h
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2017-01-09 20:19:46 +0100
committerMarcin Siodelski <marcin@isc.org>2017-01-11 10:41:33 +0100
commitdba214ecf3126f91697b58e4dde679e39353aadf (patch)
tree8b167620fef4a1a53a66f784127750eea2e5fb66 /src/lib/http/connection_pool.h
parent[master] Added ChangeLog entry for #5100. (diff)
downloadkea-dba214ecf3126f91697b58e4dde679e39353aadf.tar.xz
kea-dba214ecf3126f91697b58e4dde679e39353aadf.zip
[5099] Implemented HttpListener and other classes.
- HttpConnection - HttpConnectionPool
Diffstat (limited to 'src/lib/http/connection_pool.h')
-rw-r--r--src/lib/http/connection_pool.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/http/connection_pool.h b/src/lib/http/connection_pool.h
new file mode 100644
index 0000000000..fa9462b3e5
--- /dev/null
+++ b/src/lib/http/connection_pool.h
@@ -0,0 +1,33 @@
+// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef HTTP_CONNECTION_POOL_H
+#define HTTP_CONNECTION_POOL_H
+
+#include <http/connection.h>
+#include <set>
+
+namespace isc {
+namespace http {
+
+class HttpConnectionPool {
+public:
+
+ void start(const HttpConnectionPtr& connection);
+
+ void stop(const HttpConnectionPtr& connection);
+
+private:
+
+ std::set<HttpConnectionPtr> connections_;
+
+};
+
+}
+}
+
+#endif
+