Kea  1.5.0
connection_pool.h
Go to the documentation of this file.
1 // Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef HTTP_CONNECTION_POOL_H
8 #define HTTP_CONNECTION_POOL_H
9 
10 #include <http/connection.h>
11 #include <list>
12 
13 namespace isc {
14 namespace http {
15 
29 public:
30 
37  void start(const HttpConnectionPtr& connection);
38 
44  void stop(const HttpConnectionPtr& connection);
45 
47  void stopAll();
48 
49 protected:
50 
52  std::list<HttpConnectionPtr> connections_;
53 
54 };
55 
56 }
57 }
58 
59 #endif
60 
isc::http::HttpConnectionPool::stop
void stop(const HttpConnectionPtr &connection)
Stops a connection and removes it from the pool.
Definition: connection_pool.cc:22
isc::http::HttpConnectionPool::start
void start(const HttpConnectionPtr &connection)
Start new connection.
Definition: connection_pool.cc:16
isc::http::HttpConnectionPool
Pool of active HTTP connections.
Definition: connection_pool.h:28
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
isc::http::HttpConnectionPool::connections_
std::list< HttpConnectionPtr > connections_
Set of connections.
Definition: connection_pool.h:52
connection.h
isc::http::HttpConnectionPool::stopAll
void stopAll()
Stops all connections and removes them from the pool.
Definition: connection_pool.cc:28
isc::http::HttpConnectionPtr
boost::shared_ptr< HttpConnection > HttpConnectionPtr
Pointer to the HttpConnection.
Definition: connection.h:38