RTSPServer::RTSPClientSession Class Reference

#include <RTSPServer.hh>

Collaboration diagram for RTSPServer::RTSPClientSession:

Collaboration graph
[legend]

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 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
RTSPServer::RTSPClientSession::streamStatefStreamStates

Friends

class RTSPServer
class RTSPClientConnection

Data Structures

struct  streamState

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 (  )  [protected, virtual]


Member Function Documentation

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

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

virtual void RTSPServer::RTSPClientSession::handleCmd_TEARDOWN ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession 
) [protected, virtual]

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

virtual void RTSPServer::RTSPClientSession::handleCmd_PAUSE ( RTSPClientConnection ourClientConnection,
ServerMediaSubsession subsession 
) [protected, virtual]

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

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

UsageEnvironment& RTSPServer::RTSPClientSession::envir (  )  [inline, protected]

Definition at line 295 of file RTSPServer.hh.

References Medium::envir(), and fOurServer.

00295 { return fOurServer.envir(); }

void RTSPServer::RTSPClientSession::reclaimStreamStates (  )  [protected]

Boolean RTSPServer::RTSPClientSession::isMulticast (  )  const [inline, protected]

Definition at line 297 of file RTSPServer.hh.

References fIsMulticast.

00297 { return fIsMulticast; }

void RTSPServer::RTSPClientSession::noteLiveness (  )  [protected]

static void RTSPServer::RTSPClientSession::noteClientLiveness ( RTSPClientSession clientSession  )  [static, protected]

static void RTSPServer::RTSPClientSession::livenessTimeoutTask ( RTSPClientSession clientSession  )  [static, protected]

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr 
) [inline, protected]

Definition at line 303 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

00303 { ourClientConnection->setRTSPResponse(responseStr); }

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr,
u_int32_t  sessionId 
) [inline, protected]

Definition at line 304 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

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

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr,
char const *  contentStr 
) [inline, protected]

Definition at line 305 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

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

void RTSPServer::RTSPClientSession::setRTSPResponse ( RTSPClientConnection ourClientConnection,
char const *  responseStr,
u_int32_t  sessionId,
char const *  contentStr 
) [inline, protected]

Definition at line 306 of file RTSPServer.hh.

References RTSPServer::RTSPClientConnection::setRTSPResponse().

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

Boolean RTSPServer::RTSPClientSession::usesTCPTransport (  )  const [inline, protected]

Definition at line 314 of file RTSPServer.hh.

References fTCPStreamIdCount.

00314 { return fTCPStreamIdCount > 0; }


Friends And Related Function Documentation

friend class RTSPServer [friend]

Definition at line 275 of file RTSPServer.hh.

friend class RTSPClientConnection [friend]

Definition at line 276 of file RTSPServer.hh.


Field Documentation

RTSPServer& RTSPServer::RTSPClientSession::fOurServer [protected]

Definition at line 309 of file RTSPServer.hh.

Referenced by envir().

u_int32_t RTSPServer::RTSPClientSession::fOurSessionId [protected]

Definition at line 310 of file RTSPServer.hh.

ServerMediaSession* RTSPServer::RTSPClientSession::fOurServerMediaSession [protected]

Definition at line 311 of file RTSPServer.hh.

Boolean RTSPServer::RTSPClientSession::fIsMulticast [protected]

Definition at line 312 of file RTSPServer.hh.

Referenced by isMulticast().

Boolean RTSPServer::RTSPClientSession::fStreamAfterSETUP [protected]

Definition at line 312 of file RTSPServer.hh.

unsigned char RTSPServer::RTSPClientSession::fTCPStreamIdCount [protected]

Definition at line 313 of file RTSPServer.hh.

Referenced by usesTCPTransport().

TaskToken RTSPServer::RTSPClientSession::fLivenessCheckTask [protected]

Definition at line 315 of file RTSPServer.hh.

unsigned RTSPServer::RTSPClientSession::fNumStreamStates [protected]

Definition at line 316 of file RTSPServer.hh.

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


The documentation for this class was generated from the following file:
Generated on Mon Sep 22 12:07:39 2014 for live by  doxygen 1.5.2