00001 /* Copyright (C) 2002 Carsten Griwodz 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, this code may be used in unmodified form 00006 * provided that this copyright notice and this permission notice appear 00007 * in supporting documentation. 00008 * 00009 * The code may be made subject to the terms of the GNU General Public 00010 * License, Version 2, and re-distributed under the terms of this license. 00011 * 00012 * Commercial use other than under the terms of the GNU General Public 00013 * License is allowed only after negotiation of conditions with the authors. 00014 */ 00015 #ifndef TEST_CACHING_CONTROL_H 00016 #define TEST_CACHING_CONTROL_H 00017 00018 #include "RTSPFillBuffer.h" 00019 #include "RTSPSchemeClass.h" 00020 00021 class TestCachingControl : public ControlBase 00022 { 00023 public: 00024 TestCachingControl( MNSelector& selector ); 00025 virtual ~TestCachingControl( ); 00026 00027 virtual void MsgOut( const MNString& text ); 00028 virtual void MsgOut( const MNString& text, int seq ); 00029 virtual void MsgOut( int errNo, 00030 const MNString& headers, 00031 const MNString& body, 00032 int seq ); 00033 virtual void MsgOutNoEOL( const MNString& text ); 00034 00035 virtual MNString getClientHostname(); 00036 virtual MNString getMulticastAddress(); 00037 virtual int getNextCSeq( ); 00038 00039 protected: 00040 inline MNSelector& getSelector( ) { 00041 return _selector; 00042 } 00043 00044 private: 00050 MNSelector& _selector; 00051 int _dummy_cseq; 00052 }; 00053 00054 #endif /* TEST_CACHING_CONTROL_H */ 00055