Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tcpconnectionmanager.hpp

00001 /************************************************************************************
00002  *    This file is part of the MynahSA streaming and archiving toolkit              *
00003  *    Copyright (C) 2006 Mynah-Software Ltd. All Rights Reserved.                   *
00004  *                                                                                  *
00005  *    This program is free software; you can redistribute it and/or modify          *
00006  *    it under the terms of the GNU General Public License, version 2               *
00007  *    as published by the Free Software Foundation.                                 *
00008  *                                                                                  *
00009  *    This program is distributed in the hope that it will be useful,               *
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00012  *    GNU General Public License for more details.                                  *
00013  *                                                                                  *
00014  *    You should have received a copy of the GNU General Public License along       *
00015  *    with this program; if not, write to the Free Software Foundation, Inc.,       *
00016  *    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.                   *
00017  *                                                                                  *
00018  ************************************************************************************/
00019 
00020 #ifndef __tcp_connection_manager_hpp
00021 #define __tcp_connection_manager_hpp
00022 
00023 #include <mynahsa/requestresponsehandler.hpp>
00024 #include <mynahsa/streamconstructor.hpp>
00025 
00026 
00027 namespace MynahSA { 
00028 
00043   class TCPConnectionManager { 
00044   public:
00052     TCPConnectionManager(RequestResponseHandler& handler,
00053                          const StreamConstructor& cons);
00054   
00059     ~TCPConnectionManager();
00060   
00065     void operator()(int fd);
00066   
00067   private:
00068   
00070     RequestResponseHandler& _handler;
00071     
00073     const StreamConstructor& _streamConstructor;
00074     
00075   
00076   };
00077 };
00078 
00079 #endif