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
13namespace isc {
14namespace http {
15
29public:
30
37 void start(const HttpConnectionPtr& connection);
38
44 void stop(const HttpConnectionPtr& connection);
45
47 void stopAll();
48
49protected:
50
52 std::list<HttpConnectionPtr> connections_;
53
54};
55
56}
57}
58
59#endif
60
Pool of active HTTP connections.
void stopAll()
Stops all connections and removes them from the pool.
void stop(const HttpConnectionPtr &connection)
Stops a connection and removes it from the pool.
void start(const HttpConnectionPtr &connection)
Start new connection.
std::list< HttpConnectionPtr > connections_
Set of connections.
boost::shared_ptr< HttpConnection > HttpConnectionPtr
Pointer to the HttpConnection.
Definition: connection.h:40
Defines the logger used by the top-level component of kea-dhcp-ddns.