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

MNDummyStreamer.h

Go to the documentation of this file.
00001 /* Copyright (C) 2000 KOM/Darmstadt University of Technology 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, code may be used in unmodified form provided 00006 * that this copyright notice and this permission notice appear in 00007 * supporting documentation. 00008 * 00009 * This software is provided "as is" and without any express or implied 00010 * warranties, including, without limitation, the implied warranty of 00011 * fitness for a particular purpose. 00012 * 00013 * The code may be subjected to the GNU General Public License, Version 2, 00014 * and re-distributed under the terms of this license. 00015 * As a special exception, permission is granted to link this code 00016 * with the Qt library and distribute executables, as long as you 00017 * follow the requirements of the GNU GPL in regard to all of the 00018 * software in the executable aside from Qt. 00019 * 00020 * Commercial use other than under the terms of the GNU General Public 00021 * License is allowed only after express negotiation of conditions 00022 * with the authors. 00023 */ 00024 #ifndef MN_DUMMYSTREAMER_H 00025 #define MN_DUMMYSTREAMER_H 00026 00027 #include "MNString.h" 00028 #include "MNSocket.h" 00029 #include "dataPump.h" 00030 00031 class KomServer; 00032 00033 class MNDummyStreamer : public dataPump 00034 { 00035 private: 00036 int _bandwidth; 00037 int error; 00038 KomServer* _stateMachine; 00039 00040 public: 00041 MNDummyStreamer( MNSelector& sel, DataPumpResponse* resp ); 00042 virtual ~MNDummyStreamer( ); 00043 00044 virtual int init ( KomServer* streamer, StreamingType type = StreamingFromFileToPort ); 00045 00046 virtual bool createUpstreamSocks( int idx, 00047 int& requested, 00048 RTPSockets::FactoryMode mode, 00049 RTSP::TransportTypes requested_transport = RTSP::RTP_AVP_UDP ); 00050 virtual bool createDownstreamSocks( int idx, 00051 int& requested, 00052 RTPSockets::FactoryMode mode, 00053 RTSP::TransportTypes requested_transport = RTSP::RTP_AVP_UDP ); 00054 virtual int stream_start ( int idx, 00055 const MNString& filename, 00056 const MNString& DescFileName, 00057 const MNString& client, 00058 const MNString& server, 00059 int port, 00060 int port2 ); 00061 // virtual int open_session( const char* FileName ); 00062 virtual int play ( int start, int stop ); 00063 virtual int stop ( ); 00064 virtual int pause ( ); 00065 00066 virtual bool fillTransportString( int idx, MNString& out, bool multicast ) const; 00067 }; 00068 00069 #endif /* MN_DUMMYSTREAMER_H */

Generated on Sun Mar 6 13:35:49 2005 for Komssys by doxygen 1.3.8