liveMedia/ProxyServerMediaSession.cpp File Reference

#include "liveMedia.hh"
#include "RTSPCommon.hh"
#include "GroupsockHelper.hh"

Include dependency graph for ProxyServerMediaSession.cpp:

Go to the source code of this file.

Data Structures

class  ProxyServerMediaSubsession

Defines

#define MILLION   1000000
#define SUBSESSION_TIMEOUT_SECONDS   10

Functions

UsageEnvironmentoperator<< (UsageEnvironment &env, const ProxyServerMediaSession &psms)
static void continueAfterDESCRIBE (RTSPClient *rtspClient, int resultCode, char *resultString)
static void continueAfterSETUP (RTSPClient *rtspClient, int resultCode, char *resultString)
static void continueAfterOPTIONS (RTSPClient *rtspClient, int resultCode, char *resultString)
UsageEnvironmentoperator<< (UsageEnvironment &env, const ProxyRTSPClient &proxyRTSPClient)
UsageEnvironmentoperator<< (UsageEnvironment &env, const ProxyServerMediaSubsession &psmss)


Define Documentation

#define MILLION   1000000

Definition at line 27 of file ProxyServerMediaSession.cpp.

#define SUBSESSION_TIMEOUT_SECONDS   10

Definition at line 277 of file ProxyServerMediaSession.cpp.

Referenced by ProxyRTSPClient::continueAfterSETUP().


Function Documentation

static void continueAfterDESCRIBE ( RTSPClient rtspClient,
int  resultCode,
char *  resultString 
) [static]

Definition at line 149 of file ProxyServerMediaSession.cpp.

References NULL.

Referenced by continueAfterOPTIONS(), and openURL().

00149                                                                                               {
00150   char const* res;
00151 
00152   if (resultCode == 0) {
00153     // The "DESCRIBE" command succeeded, so "resultString" should be the stream's SDP description.
00154     res = resultString;
00155   } else {
00156     // The "DESCRIBE" command failed.
00157     res = NULL;
00158   }
00159   ((ProxyRTSPClient*)rtspClient)->continueAfterDESCRIBE(res);
00160   delete[] resultString;
00161 }

static void continueAfterOPTIONS ( RTSPClient rtspClient,
int  resultCode,
char *  resultString 
) [static]

Definition at line 170 of file ProxyServerMediaSession.cpp.

References False, and RTSPOptionIsSupported().

Referenced by main(), and ProxyRTSPClient::sendLivenessCommand().

00170                                                                                              {
00171   Boolean serverSupportsGetParameter = False;
00172   if (resultCode == 0) {
00173     // Note whether the server told us that it supports the "GET_PARAMETER" command:
00174     serverSupportsGetParameter = RTSPOptionIsSupported("GET_PARAMETER", resultString);
00175   }
00176   ((ProxyRTSPClient*)rtspClient)->continueAfterLivenessCommand(resultCode, serverSupportsGetParameter);
00177   delete[] resultString;
00178 }

static void continueAfterSETUP ( RTSPClient rtspClient,
int  resultCode,
char *  resultString 
) [static]

Definition at line 163 of file ProxyServerMediaSession.cpp.

Referenced by ProxyServerMediaSubsession::createNewStreamSource(), setupNextSubsession(), and setupStreams().

00163                                                                                            {
00164   if (resultCode == 0) {
00165     ((ProxyRTSPClient*)rtspClient)->continueAfterSETUP();
00166   }
00167   delete[] resultString;
00168 }

UsageEnvironment& operator<< ( UsageEnvironment env,
const ProxyServerMediaSubsession psmss 
)

Definition at line 393 of file ProxyServerMediaSession.cpp.

References ProxyServerMediaSubsession::codecName(), and env.

00393                                                                                              { // used for debugging
00394   return env << "ProxyServerMediaSubsession[\"" << psmss.codecName() << "\"]";
00395 }

UsageEnvironment& operator<< ( UsageEnvironment env,
const ProxyRTSPClient proxyRTSPClient 
)

Definition at line 190 of file ProxyServerMediaSession.cpp.

References env, and RTSPClient::url().

00190                                                                                             { // used for debugging
00191   return env << "ProxyRTSPClient[\"" << proxyRTSPClient.url() << "\"]";
00192 }

UsageEnvironment& operator<< ( UsageEnvironment env,
const ProxyServerMediaSession psms 
)

Definition at line 63 of file ProxyServerMediaSession.cpp.

References env, and ProxyServerMediaSession::url().

00063                                                                                          { // used for debugging
00064   return env << "ProxyServerMediaSession[\"" << psms.url() << "\"]";
00065 }


Generated on Mon Apr 29 13:30:34 2013 for live by  doxygen 1.5.2