live
RTSPServer::RTSPClientSession Class Reference

#include <RTSPServer.hh>

Inheritance diagram for RTSPServer::RTSPClientSession:
Collaboration diagram for RTSPServer::RTSPClientSession:

Data Structures

struct  streamState

Protected Member Functions

 RTSPClientSession (RTSPServer &ourServer, u_int32_t sessionId)
virtual ~RTSPClientSession ()
virtual void handleCmd_SETUP (RTSPClientConnection *ourClientConnection, char const *urlPreSuffix, char const *urlSuffix, char const *fullRequestStr)
virtual void handleCmd_SETUP_afterLookup1 (RTSPClientConnection *ourClientConnection, ServerMediaSession *sms)
virtual void handleCmd_SETUP_afterLookup2 (RTSPClientConnection *ourClientConnection, ServerMediaSession *sms)
virtual void handleCmd_withinSession (RTSPClientConnection *ourClientConnection, char const *cmdName, char const *urlPreSuffix, char const *urlSuffix, char const *fullRequestStr)
virtual void handleCmd_TEARDOWN (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession, char const *fullRequestStr)
virtual void handleCmd_PLAY (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession, char const *fullRequestStr)
virtual void handleCmd_PAUSE (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession, char const *fullRequestStr)
virtual void handleCmd_GET_PARAMETER (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession, char const *fullRequestStr)
virtual void handleCmd_SET_PARAMETER (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession, char const *fullRequestStr)
void deleteStreamByTrack (unsigned trackNum)
void reclaimStreamStates ()
Boolean isMulticast () const
void setRTSPResponse (RTSPClientConnection *ourClientConnection, char const *responseStr)
void setRTSPResponse (RTSPClientConnection *ourClientConnection, char const *responseStr, u_int32_t sessionId)
void setRTSPResponse (RTSPClientConnection *ourClientConnection, char const *responseStr, char const *contentStr)
void setRTSPResponse (RTSPClientConnection *ourClientConnection, char const *responseStr, u_int32_t sessionId, char const *contentStr)
Boolean usesTCPTransport () const
UsageEnvironmentenvir ()
void noteLiveness ()

Static Protected Member Functions

static void SETUPLookupCompletionFunction1 (void *clientData, ServerMediaSession *smsLookedUp)
static void SETUPLookupCompletionFunction2 (void *clientData, ServerMediaSession *smsLookedUp)
static void noteClientLiveness (ClientSession *clientSession)
static void livenessTimeoutTask (ClientSession *clientSession)

Protected Attributes

RTSPServerfOurRTSPServer
Boolean fIsMulticast
Boolean fStreamAfterSETUP
unsigned char fTCPStreamIdCount
unsigned fNumStreamStates
struct RTSPServer::RTSPClientSession::streamStatefStreamStates
char const * fURLPreSuffix
char const * fURLSuffix
char const * fFullRequestStr
char const * fTrackId
GenericMediaServerfOurServer
u_int32_t fOurSessionId
ServerMediaSessionfOurServerMediaSession
TaskToken fLivenessCheckTask

Friends

class RTSPServer
class RTSPClientConnection

Detailed Description

Definition at line 246 of file RTSPServer.hh.

Constructor & Destructor Documentation

◆ RTSPClientSession()

RTSPServer::RTSPClientSession::RTSPClientSession ( RTSPServer & ourServer,
u_int32_t sessionId )
protected

References RTSPServer.

◆ ~RTSPClientSession()

virtual RTSPServer::RTSPClientSession::~RTSPClientSession ( )
protectedvirtual

Member Function Documentation

◆ deleteStreamByTrack()

void RTSPServer::RTSPClientSession::deleteStreamByTrack ( unsigned trackNum)
protected

◆ envir()

UsageEnvironment & GenericMediaServer::ClientSession::envir ( )
inlineprotectedinherited

Definition at line 147 of file GenericMediaServer.hh.

147{ return fOurServer.envir(); }
UsageEnvironment & envir() const
Definition Media.hh:59

References Medium::envir(), and fOurServer.

◆ handleCmd_GET_PARAMETER()

virtual void RTSPServer::RTSPClientSession::handleCmd_GET_PARAMETER ( RTSPClientConnection * ourClientConnection,
ServerMediaSubsession * subsession,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_PAUSE()

virtual void RTSPServer::RTSPClientSession::handleCmd_PAUSE ( RTSPClientConnection * ourClientConnection,
ServerMediaSubsession * subsession,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_PLAY()

virtual void RTSPServer::RTSPClientSession::handleCmd_PLAY ( RTSPClientConnection * ourClientConnection,
ServerMediaSubsession * subsession,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_SET_PARAMETER()

virtual void RTSPServer::RTSPClientSession::handleCmd_SET_PARAMETER ( RTSPClientConnection * ourClientConnection,
ServerMediaSubsession * subsession,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_SETUP()

virtual void RTSPServer::RTSPClientSession::handleCmd_SETUP ( RTSPClientConnection * ourClientConnection,
char const * urlPreSuffix,
char const * urlSuffix,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_SETUP_afterLookup1()

virtual void RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup1 ( RTSPClientConnection * ourClientConnection,
ServerMediaSession * sms )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_SETUP_afterLookup2()

virtual void RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2 ( RTSPClientConnection * ourClientConnection,
ServerMediaSession * sms )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_TEARDOWN()

virtual void RTSPServer::RTSPClientSession::handleCmd_TEARDOWN ( RTSPClientConnection * ourClientConnection,
ServerMediaSubsession * subsession,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ handleCmd_withinSession()

virtual void RTSPServer::RTSPClientSession::handleCmd_withinSession ( RTSPClientConnection * ourClientConnection,
char const * cmdName,
char const * urlPreSuffix,
char const * urlSuffix,
char const * fullRequestStr )
protectedvirtual

References RTSPClientConnection.

◆ isMulticast()

Boolean RTSPServer::RTSPClientSession::isMulticast ( ) const
inlineprotected

Definition at line 279 of file RTSPServer.hh.

279{ return fIsMulticast; }

References fIsMulticast.

◆ livenessTimeoutTask()

void GenericMediaServer::ClientSession::livenessTimeoutTask ( ClientSession * clientSession)
staticprotectedinherited

References ClientSession().

◆ noteClientLiveness()

void GenericMediaServer::ClientSession::noteClientLiveness ( ClientSession * clientSession)
staticprotectedinherited

References ClientSession().

◆ noteLiveness()

void GenericMediaServer::ClientSession::noteLiveness ( )
protectedinherited

◆ reclaimStreamStates()

void RTSPServer::RTSPClientSession::reclaimStreamStates ( )
protected

◆ setRTSPResponse() [1/4]

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection * ourClientConnection,
char const * responseStr )
inlineprotected

Definition at line 282 of file RTSPServer.hh.

282{ ourClientConnection->setRTSPResponse(responseStr); }

References RTSPClientConnection, and RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ setRTSPResponse() [2/4]

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection * ourClientConnection,
char const * responseStr,
char const * contentStr )
inlineprotected

Definition at line 284 of file RTSPServer.hh.

284{ ourClientConnection->setRTSPResponse(responseStr, contentStr); }

References RTSPClientConnection, and RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ setRTSPResponse() [3/4]

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection * ourClientConnection,
char const * responseStr,
u_int32_t sessionId )
inlineprotected

Definition at line 283 of file RTSPServer.hh.

283{ ourClientConnection->setRTSPResponse(responseStr, sessionId); }

References RTSPClientConnection, and RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ setRTSPResponse() [4/4]

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection * ourClientConnection,
char const * responseStr,
u_int32_t sessionId,
char const * contentStr )
inlineprotected

Definition at line 285 of file RTSPServer.hh.

285{ ourClientConnection->setRTSPResponse(responseStr, sessionId, contentStr); }

References RTSPClientConnection, and RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ SETUPLookupCompletionFunction1()

void RTSPServer::RTSPClientSession::SETUPLookupCompletionFunction1 ( void * clientData,
ServerMediaSession * smsLookedUp )
staticprotected

◆ SETUPLookupCompletionFunction2()

void RTSPServer::RTSPClientSession::SETUPLookupCompletionFunction2 ( void * clientData,
ServerMediaSession * smsLookedUp )
staticprotected

◆ usesTCPTransport()

Boolean RTSPServer::RTSPClientSession::usesTCPTransport ( ) const
inlineprotected

Definition at line 291 of file RTSPServer.hh.

291{ return fTCPStreamIdCount > 0; }

References fTCPStreamIdCount.

◆ RTSPClientConnection

◆ RTSPServer

friend class RTSPServer
friend

Definition at line 251 of file RTSPServer.hh.

References RTSPServer.

Referenced by RTSPClientSession(), and RTSPServer.

Field Documentation

◆ fFullRequestStr

char const* RTSPServer::RTSPClientSession::fFullRequestStr
protected

Definition at line 300 of file RTSPServer.hh.

◆ fIsMulticast

Boolean RTSPServer::RTSPClientSession::fIsMulticast
protected

Definition at line 289 of file RTSPServer.hh.

Referenced by isMulticast().

◆ fLivenessCheckTask

TaskToken GenericMediaServer::ClientSession::fLivenessCheckTask
protectedinherited

Definition at line 158 of file GenericMediaServer.hh.

◆ fNumStreamStates

unsigned RTSPServer::RTSPClientSession::fNumStreamStates
protected

Definition at line 292 of file RTSPServer.hh.

◆ fOurRTSPServer

RTSPServer& RTSPServer::RTSPClientSession::fOurRTSPServer
protected

Definition at line 288 of file RTSPServer.hh.

◆ fOurServer

GenericMediaServer& GenericMediaServer::ClientSession::fOurServer
protectedinherited

Definition at line 155 of file GenericMediaServer.hh.

Referenced by envir().

◆ fOurServerMediaSession

ServerMediaSession* GenericMediaServer::ClientSession::fOurServerMediaSession
protectedinherited

Definition at line 157 of file GenericMediaServer.hh.

◆ fOurSessionId

u_int32_t GenericMediaServer::ClientSession::fOurSessionId
protectedinherited

Definition at line 156 of file GenericMediaServer.hh.

◆ fStreamAfterSETUP

Boolean RTSPServer::RTSPClientSession::fStreamAfterSETUP
protected

Definition at line 289 of file RTSPServer.hh.

◆ fStreamStates

struct RTSPServer::RTSPClientSession::streamState * RTSPServer::RTSPClientSession::fStreamStates
protected

◆ fTCPStreamIdCount

unsigned char RTSPServer::RTSPClientSession::fTCPStreamIdCount
protected

Definition at line 290 of file RTSPServer.hh.

Referenced by usesTCPTransport().

◆ fTrackId

char const* RTSPServer::RTSPClientSession::fTrackId
protected

Definition at line 300 of file RTSPServer.hh.

◆ fURLPreSuffix

char const* RTSPServer::RTSPClientSession::fURLPreSuffix
protected

Definition at line 300 of file RTSPServer.hh.

◆ fURLSuffix

char const* RTSPServer::RTSPClientSession::fURLSuffix
protected

Definition at line 300 of file RTSPServer.hh.


The documentation for this class was generated from the following file: