blob: 97464bf3639ccba30b648d57471951bd8f60a418 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// license:Boost
// copyright-holders:Christopher M. Kohlhoff
#include "connection_manager.hpp"
namespace http {
namespace server {
connection_manager::connection_manager()
{
}
void connection_manager::start(connection_ptr c)
{
m_connections.insert(c);
c->start();
}
void connection_manager::stop(connection_ptr c)
{
m_connections.erase(c);
c->stop();
}
void connection_manager::stop_all()
{
for (auto c: m_connections)
c->stop();
m_connections.clear();
}
} // namespace server
} // namespace http
|