Sha256: 13c03f6114a35271e8531f2ecdc2bd966d18159f8e9f3c3eeef6ddcf156cbb6b
Contents?: true
Size: 751 Bytes
Versions: 16
Compression:
Stored size: 751 Bytes
Contents
// // connection_manager.cpp // ~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "connection_manager.hpp" namespace http { namespace server { connection_manager::connection_manager() { } void connection_manager::start(connection_ptr c) { connections_.insert(c); c->start(); } void connection_manager::stop(connection_ptr c) { connections_.erase(c); c->stop(); } void connection_manager::stop_all() { for (auto c: connections_) c->stop(); connections_.clear(); } } // namespace server } // namespace http
Version data entries
16 entries across 16 versions & 1 rubygems