Boost C++ Libraries Home Libraries People FAQ More

Home | Reference | Tutorial | Examples | Design

http/server/connection_manager.hpp

Go to the documentation of this file.
00001 #ifndef HTTP_CONNECTION_MANAGER_HPP
00002 #define HTTP_CONNECTION_MANAGER_HPP
00003 
00004 #include <set>
00005 #include <boost/noncopyable.hpp>
00006 #include "connection.hpp"
00007 
00008 namespace http {
00009 namespace server {
00010 
00013 class connection_manager
00014   : private boost::noncopyable
00015 {
00016 public:
00018   void start(connection_ptr c);
00019 
00021   void stop(connection_ptr c);
00022 
00024   void stop_all();
00025 
00026 private:
00028   std::set<connection_ptr> connections_;
00029 };
00030 
00031 } // namespace server
00032 } // namespace http
00033 
00034 #endif // HTTP_CONNECTION_MANAGER_HPP
Copyright © 2003 - 2006 Christopher M. Kohlhoff

Home | Reference | Tutorial | Examples | Design