live
Data Structures | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
RTSPServer::RTSPClientSession Class Reference

#include <RTSPServer.hh>

Inheritance diagram for RTSPServer::RTSPClientSession:
Inheritance graph
[legend]
Collaboration diagram for RTSPServer::RTSPClientSession:
Collaboration graph
[legend]

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 (ServerMediaSession *sms)
 
virtual void handleCmd_SETUP_afterLookup2 (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)
 
virtual void handleCmd_PLAY (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession, char const *fullRequestStr)
 
virtual void handleCmd_PAUSE (RTSPClientConnection *ourClientConnection, ServerMediaSubsession *subsession)
 
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 *sessionLookedUp)
 
static void SETUPLookupCompletionFunction2 (void *clientData, ServerMediaSession *sessionLookedUp)
 
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
 
RTSPServer::RTSPClientConnectionfOurClientConnection
 
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 251 of file RTSPServer.hh.

Constructor & Destructor Documentation

◆ RTSPClientSession()

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

◆ ~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 141 of file GenericMediaServer.hh.

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

References Medium::envir(), and GenericMediaServer::ClientSession::fOurServer.

◆ handleCmd_GET_PARAMETER()

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

◆ handleCmd_PAUSE()

virtual void RTSPServer::RTSPClientSession::handleCmd_PAUSE ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession 
)
protectedvirtual

◆ handleCmd_PLAY()

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

◆ handleCmd_SET_PARAMETER()

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

◆ handleCmd_SETUP()

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

◆ handleCmd_SETUP_afterLookup1()

virtual void RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup1 ( ServerMediaSession sms)
protectedvirtual

◆ handleCmd_SETUP_afterLookup2()

virtual void RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2 ( ServerMediaSession sms)
protectedvirtual

◆ handleCmd_TEARDOWN()

virtual void RTSPServer::RTSPClientSession::handleCmd_TEARDOWN ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession 
)
protectedvirtual

◆ handleCmd_withinSession()

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

◆ isMulticast()

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

Definition at line 282 of file RTSPServer.hh.

282{ return fIsMulticast; }

References fIsMulticast.

◆ livenessTimeoutTask()

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

◆ noteClientLiveness()

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

◆ 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 285 of file RTSPServer.hh.

285{ ourClientConnection->setRTSPResponse(responseStr); }

References RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ setRTSPResponse() [2/4]

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

Definition at line 287 of file RTSPServer.hh.

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

References RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ setRTSPResponse() [3/4]

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

Definition at line 286 of file RTSPServer.hh.

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

References 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 288 of file RTSPServer.hh.

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

References RTSPServer::RTSPClientConnection::setRTSPResponse().

◆ SETUPLookupCompletionFunction1()

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

◆ SETUPLookupCompletionFunction2()

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

◆ usesTCPTransport()

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

Definition at line 294 of file RTSPServer.hh.

294{ return fTCPStreamIdCount > 0; }

References fTCPStreamIdCount.

Friends And Related Function Documentation

◆ RTSPClientConnection

friend class RTSPClientConnection
friend

Definition at line 257 of file RTSPServer.hh.

◆ RTSPServer

friend class RTSPServer
friend

Definition at line 256 of file RTSPServer.hh.

Field Documentation

◆ fFullRequestStr

char const* RTSPServer::RTSPClientSession::fFullRequestStr
protected

Definition at line 304 of file RTSPServer.hh.

◆ fIsMulticast

Boolean RTSPServer::RTSPClientSession::fIsMulticast
protected

Definition at line 292 of file RTSPServer.hh.

Referenced by isMulticast().

◆ fLivenessCheckTask

TaskToken GenericMediaServer::ClientSession::fLivenessCheckTask
protectedinherited

Definition at line 152 of file GenericMediaServer.hh.

◆ fNumStreamStates

unsigned RTSPServer::RTSPClientSession::fNumStreamStates
protected

Definition at line 295 of file RTSPServer.hh.

◆ fOurClientConnection

RTSPServer::RTSPClientConnection* RTSPServer::RTSPClientSession::fOurClientConnection
protected

Definition at line 303 of file RTSPServer.hh.

◆ fOurRTSPServer

RTSPServer& RTSPServer::RTSPClientSession::fOurRTSPServer
protected

Definition at line 291 of file RTSPServer.hh.

◆ fOurServer

GenericMediaServer& GenericMediaServer::ClientSession::fOurServer
protectedinherited

Definition at line 149 of file GenericMediaServer.hh.

Referenced by GenericMediaServer::ClientSession::envir().

◆ fOurServerMediaSession

ServerMediaSession* GenericMediaServer::ClientSession::fOurServerMediaSession
protectedinherited

Definition at line 151 of file GenericMediaServer.hh.

◆ fOurSessionId

u_int32_t GenericMediaServer::ClientSession::fOurSessionId
protectedinherited

Definition at line 150 of file GenericMediaServer.hh.

◆ fStreamAfterSETUP

Boolean RTSPServer::RTSPClientSession::fStreamAfterSETUP
protected

Definition at line 292 of file RTSPServer.hh.

◆ fStreamStates

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

◆ fTCPStreamIdCount

unsigned char RTSPServer::RTSPClientSession::fTCPStreamIdCount
protected

Definition at line 293 of file RTSPServer.hh.

Referenced by usesTCPTransport().

◆ fTrackId

char const* RTSPServer::RTSPClientSession::fTrackId
protected

Definition at line 304 of file RTSPServer.hh.

◆ fURLPreSuffix

char const* RTSPServer::RTSPClientSession::fURLPreSuffix
protected

Definition at line 304 of file RTSPServer.hh.

◆ fURLSuffix

char const* RTSPServer::RTSPClientSession::fURLSuffix
protected

Definition at line 304 of file RTSPServer.hh.


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