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

#include <RTSPServer.hh>

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_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)
 
UsageEnvironmentenvir ()
 
void deleteStreamByTrack (unsigned trackNum)
 
void reclaimStreamStates ()
 
Boolean isMulticast () const
 
void noteLiveness ()
 
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
 

Static Protected Member Functions

static void noteClientLiveness (RTSPClientSession *clientSession)
 
static void livenessTimeoutTask (RTSPClientSession *clientSession)
 

Protected Attributes

RTSPServerfOurServer
 
u_int32_t fOurSessionId
 
ServerMediaSessionfOurServerMediaSession
 
Boolean fIsMulticast
 
Boolean fStreamAfterSETUP
 
unsigned char fTCPStreamIdCount
 
TaskToken fLivenessCheckTask
 
unsigned fNumStreamStates
 
struct
RTSPServer::RTSPClientSession::streamState
fStreamStates
 

Friends

class RTSPServer
 
class RTSPClientConnection
 

Detailed Description

Definition at line 270 of file RTSPServer.hh.

Constructor & Destructor Documentation

RTSPServer::RTSPClientSession::RTSPClientSession ( RTSPServer ourServer,
u_int32_t  sessionId 
)
protected
virtual RTSPServer::RTSPClientSession::~RTSPClientSession ( )
protectedvirtual

Member Function Documentation

void RTSPServer::RTSPClientSession::deleteStreamByTrack ( unsigned  trackNum)
protected
UsageEnvironment& RTSPServer::RTSPClientSession::envir ( )
inlineprotected

Definition at line 295 of file RTSPServer.hh.

References Medium::envir(), and fOurServer.

295 { return fOurServer.envir(); }
UsageEnvironment & envir() const
Definition: Media.hh:59
virtual void RTSPServer::RTSPClientSession::handleCmd_GET_PARAMETER ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession,
char const *  fullRequestStr 
)
protectedvirtual
virtual void RTSPServer::RTSPClientSession::handleCmd_PAUSE ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession 
)
protectedvirtual
virtual void RTSPServer::RTSPClientSession::handleCmd_PLAY ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession,
char const *  fullRequestStr 
)
protectedvirtual
virtual void RTSPServer::RTSPClientSession::handleCmd_SET_PARAMETER ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession,
char const *  fullRequestStr 
)
protectedvirtual
virtual void RTSPServer::RTSPClientSession::handleCmd_SETUP ( RTSPClientConnection ourClientConnection,
char const *  urlPreSuffix,
char const *  urlSuffix,
char const *  fullRequestStr 
)
protectedvirtual
virtual void RTSPServer::RTSPClientSession::handleCmd_TEARDOWN ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession 
)
protectedvirtual
virtual void RTSPServer::RTSPClientSession::handleCmd_withinSession ( RTSPClientConnection ourClientConnection,
char const *  cmdName,
char const *  urlPreSuffix,
char const *  urlSuffix,
char const *  fullRequestStr 
)
protectedvirtual
Boolean RTSPServer::RTSPClientSession::isMulticast ( ) const
inlineprotected

Definition at line 298 of file RTSPServer.hh.

References fIsMulticast.

298 { return fIsMulticast; }
static void RTSPServer::RTSPClientSession::livenessTimeoutTask ( RTSPClientSession clientSession)
staticprotected
static void RTSPServer::RTSPClientSession::noteClientLiveness ( RTSPClientSession clientSession)
staticprotected
void RTSPServer::RTSPClientSession::noteLiveness ( )
protected
void RTSPServer::RTSPClientSession::reclaimStreamStates ( )
protected
void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr 
)
inlineprotected

Definition at line 304 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

304 { ourClientConnection->setRTSPResponse(responseStr); }
void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr,
u_int32_t  sessionId 
)
inlineprotected

Definition at line 305 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

305 { ourClientConnection->setRTSPResponse(responseStr, sessionId); }
void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr,
char const *  contentStr 
)
inlineprotected

Definition at line 306 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

306 { ourClientConnection->setRTSPResponse(responseStr, contentStr); }
void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr,
u_int32_t  sessionId,
char const *  contentStr 
)
inlineprotected

Definition at line 307 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

307 { ourClientConnection->setRTSPResponse(responseStr, sessionId, contentStr); }
Boolean RTSPServer::RTSPClientSession::usesTCPTransport ( ) const
inlineprotected

Definition at line 315 of file RTSPServer.hh.

References fTCPStreamIdCount.

315 { return fTCPStreamIdCount > 0; }

Friends And Related Function Documentation

friend class RTSPClientConnection
friend

Definition at line 276 of file RTSPServer.hh.

friend class RTSPServer
friend

Definition at line 275 of file RTSPServer.hh.

Field Documentation

Boolean RTSPServer::RTSPClientSession::fIsMulticast
protected

Definition at line 313 of file RTSPServer.hh.

Referenced by isMulticast().

TaskToken RTSPServer::RTSPClientSession::fLivenessCheckTask
protected

Definition at line 316 of file RTSPServer.hh.

unsigned RTSPServer::RTSPClientSession::fNumStreamStates
protected

Definition at line 317 of file RTSPServer.hh.

RTSPServer& RTSPServer::RTSPClientSession::fOurServer
protected

Definition at line 310 of file RTSPServer.hh.

Referenced by envir().

ServerMediaSession* RTSPServer::RTSPClientSession::fOurServerMediaSession
protected

Definition at line 312 of file RTSPServer.hh.

u_int32_t RTSPServer::RTSPClientSession::fOurSessionId
protected

Definition at line 311 of file RTSPServer.hh.

Boolean RTSPServer::RTSPClientSession::fStreamAfterSETUP
protected

Definition at line 313 of file RTSPServer.hh.

struct RTSPServer::RTSPClientSession::streamState * RTSPServer::RTSPClientSession::fStreamStates
protected
unsigned char RTSPServer::RTSPClientSession::fTCPStreamIdCount
protected

Definition at line 314 of file RTSPServer.hh.

Referenced by usesTCPTransport().


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