]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/asio/example/cpp11/http/server/connection_manager.cpp
2 // connection_manager.cpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #include "connection_manager.hpp"
16 connection_manager::connection_manager()
20 void connection_manager::start(connection_ptr c
)
22 connections_
.insert(c
);
26 void connection_manager::stop(connection_ptr c
)
28 connections_
.erase(c
);
32 void connection_manager::stop_all()
34 for (auto c
: connections_
)