RTSPMessageSender.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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
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
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
00077
static void copy_ok_response(
ControlBase*,
RTSPParserBase* );
00078
00079
static void copy_err_response(
ControlBase*,
RTSPParserBase* );
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
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
00095
Generated on Sun Mar 6 13:35:50 2005 for Komssys by
1.3.8