asio 0.3.8rc3 Home | Reference | Tutorial | Examples | Design
Examples

http/server/connection_manager.hpp

Go to the documentation of this file.
00001 //
00002 // connection_manager.hpp
00003 // ~~~~~~~~~~~~~~~~~~~~~~
00004 //
00005 // Copyright (c) 2003-2007 Christopher M. Kohlhoff (chris at kohlhoff dot com)
00006 //
00007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
00008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00009 //
00010 
00011 #ifndef HTTP_CONNECTION_MANAGER_HPP
00012 #define HTTP_CONNECTION_MANAGER_HPP
00013 
00014 #include <set>
00015 #include <boost/noncopyable.hpp>
00016 #include "connection.hpp"
00017 
00018 namespace http {
00019 namespace server {
00020 
00023 class connection_manager
00024   : private boost::noncopyable
00025 {
00026 public:
00028   void start(connection_ptr c);
00029 
00031   void stop(connection_ptr c);
00032 
00034   void stop_all();
00035 
00036 private:
00038   std::set<connection_ptr> connections_;
00039 };
00040 
00041 } // namespace server
00042 } // namespace http
00043 
00044 #endif // HTTP_CONNECTION_MANAGER_HPP
asio 0.3.8rc3 Home | Reference | Tutorial | Examples | Design