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

RTSPMessageSender.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 RTSP_MSG_SENDER_H 00025 #define RTSP_MSG_SENDER_H 00026 00027 #include "RTSPDefs.h" 00028 00029 enum ProxyOperationMode { 00030 RTSPProxyDontTouchRTP = 0x0, 00031 RTSPProxyStreaming = 0x1, 00032 RTSPProxyCaching = 0x2, 00033 RTSPProxyFormatswitching = 0x4 00034 }; 00035 00037 typedef int ProxyOperationModes; 00038 00039 00040 class ControlBase; 00041 class RTSPParserBase; 00042 class RTSPProxySession; 00043 00044 class RTSPMessageSender 00045 { 00046 00047 public: 00048 00049 /* REQUESTS */ 00050 static void send_options_request ( ControlBase*, RTSPParserBase*, int ); 00051 00052 static void send_teardown_request ( ControlBase* fb, RTSPParserBase* RequestHdr, int cseq, u_int64_t snum ); 00053 00054 static void send_describe_request ( ControlBase*, RTSPParserBase*, int, int ); 00055 00056 static void send_describe_patch_request( ControlBase*, RTSPParserBase*, int ); 00057 00058 static void send_setup_request ( ControlBase* fb, 00059 RTSPParserBase* RequestHdr, 00060 int cseq, 00061 bool multicast, 00062 MNString destination, 00063 int port, 00064 ProxyOperationModes proxy_mode = 0, 00065 u_int64_t sessionID = 0); 00066 00067 // ProxyOperationMode proxy_mode = RTSPProxyDontTouchRTP ); we now use int to transfer a bitpattern 00068 00069 static void send_play_request ( ControlBase* fb, RTSPParserBase* RequestHdr, int cseq, u_int64_t snum, 00070 int start = -1, int stop = -1 ); 00071 00072 static void send_pause_request ( ControlBase* fb, RTSPParserBase* RequestHdr, int cseq, u_int64_t snum ); 00073 00074 static void send_getpara_request( ControlBase*, RTSPParserBase*, int ); 00075 00076 /* RESPONSES */ 00077 static void copy_ok_response( ControlBase*, RTSPParserBase* ); // only copies the respones 00078 00079 static void copy_err_response( ControlBase*, RTSPParserBase* ); // only copies the respones 00080 00081 static void send_err_response( ControlBase* fb, RTSPParserBase* Reply, int cseq ); 00082 00083 static void send_describe_ok( ControlBase* fb, RTSPParserBase* Reply, int cseq ); 00084 00085 static void send_ok_response( ControlBase* fb, RTSPProxySession* pSession, int idx=0 ); 00086 00087 /* ALL */ 00088 static void SendMessage( ControlBase*, const MNString& msg, int dummy ); 00089 00090 static void SendResponse( ControlBase* fb, int errNo, MNString headers, MNString body, int cseq ); 00091 00092 00093 }; 00094 #endif /* RTSP_MSG_SENDER_H */ 00095

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