ServerMediaSession Class Reference

#include <ServerMediaSession.hh>

Inheritance diagram for ServerMediaSession:

Inheritance graph
[legend]
Collaboration diagram for ServerMediaSession:

Collaboration graph
[legend]

Public Member Functions

char * generateSDPDescription ()
char const * streamName () const
Boolean addSubsession (ServerMediaSubsession *subsession)
unsigned numSubsessions () const
void testScaleFactor (float &scale)
float duration () const
unsigned referenceCount () const
void incrementReferenceCount ()
void decrementReferenceCount ()
BooleandeleteWhenUnreferenced ()
void deleteAllSubsessions ()
UsageEnvironmentenvir () const
char const * name () const
virtual Boolean isSource () const
virtual Boolean isSink () const
virtual Boolean isRTCPInstance () const
virtual Boolean isRTSPClient () const
virtual Boolean isRTSPServer () const
virtual Boolean isMediaSession () const
virtual Boolean isDarwinInjector () const

Static Public Member Functions

static ServerMediaSessioncreateNew (UsageEnvironment &env, char const *streamName=NULL, char const *info=NULL, char const *description=NULL, Boolean isSSM=False, char const *miscSDPLines=NULL)
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, ServerMediaSession *&resultSession)
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, Medium *&resultMedium)
static void close (UsageEnvironment &env, char const *mediumName)
static void close (Medium *medium)

Protected Member Functions

 ServerMediaSession (UsageEnvironment &env, char const *streamName, char const *info, char const *description, Boolean isSSM, char const *miscSDPLines)
virtual ~ServerMediaSession ()
TaskTokennextTask ()

Private Member Functions

virtual Boolean isServerMediaSession () const

Private Attributes

Boolean fIsSSM
ServerMediaSubsessionfSubsessionsHead
ServerMediaSubsessionfSubsessionsTail
unsigned fSubsessionCounter
char * fStreamName
char * fInfoSDPString
char * fDescriptionSDPString
char * fMiscSDPLines
timeval fCreationTime
unsigned fReferenceCount
Boolean fDeleteWhenUnreferenced

Friends

class ServerMediaSubsessionIterator
class MediaLookupTable

Detailed Description

Definition at line 42 of file ServerMediaSession.hh.


Constructor & Destructor Documentation

ServerMediaSession::ServerMediaSession ( UsageEnvironment env,
char const *  streamName,
char const *  info,
char const *  description,
Boolean  isSSM,
char const *  miscSDPLines 
) [protected]

virtual ServerMediaSession::~ServerMediaSession (  )  [protected, virtual]


Member Function Documentation

static ServerMediaSession* ServerMediaSession::createNew ( UsageEnvironment env,
char const *  streamName = NULL,
char const *  info = NULL,
char const *  description = NULL,
Boolean  isSSM = False,
char const *  miscSDPLines = NULL 
) [static]

static Boolean ServerMediaSession::lookupByName ( UsageEnvironment env,
char const *  mediumName,
ServerMediaSession *&  resultSession 
) [static]

char* ServerMediaSession::generateSDPDescription (  ) 

char const* ServerMediaSession::streamName (  )  const [inline]

Definition at line 58 of file ServerMediaSession.hh.

References fStreamName.

00058 { return fStreamName; }

Boolean ServerMediaSession::addSubsession ( ServerMediaSubsession subsession  ) 

unsigned ServerMediaSession::numSubsessions (  )  const [inline]

Definition at line 61 of file ServerMediaSession.hh.

References fSubsessionCounter.

00061 { return fSubsessionCounter; }

void ServerMediaSession::testScaleFactor ( float &  scale  ) 

float ServerMediaSession::duration (  )  const

unsigned ServerMediaSession::referenceCount (  )  const [inline]

Definition at line 69 of file ServerMediaSession.hh.

References fReferenceCount.

00069 { return fReferenceCount; }

void ServerMediaSession::incrementReferenceCount (  )  [inline]

Definition at line 70 of file ServerMediaSession.hh.

References fReferenceCount.

00070 { ++fReferenceCount; }

void ServerMediaSession::decrementReferenceCount (  )  [inline]

Definition at line 71 of file ServerMediaSession.hh.

References fReferenceCount.

00071 { if (fReferenceCount > 0) --fReferenceCount; }

Boolean& ServerMediaSession::deleteWhenUnreferenced (  )  [inline]

Definition at line 72 of file ServerMediaSession.hh.

References fDeleteWhenUnreferenced.

00072 { return fDeleteWhenUnreferenced; }

void ServerMediaSession::deleteAllSubsessions (  ) 

virtual Boolean ServerMediaSession::isServerMediaSession (  )  const [private, virtual]

Reimplemented from Medium.

static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
) [static, inherited]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
) [static, inherited]

static void Medium::close ( Medium medium  )  [static, inherited]

UsageEnvironment& Medium::envir (  )  const [inline, inherited]

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

Referenced by MediaSubsession::env(), RTSPServer::RTSPClientSession::envir(), RTSPServer::RTSPClientConnection::envir(), and RTPInterface::envir().

00059 {return fEnviron;}

char const* Medium::name (  )  const [inline, inherited]

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

00061 {return fMediumName;}

virtual Boolean Medium::isSource (  )  const [virtual, inherited]

Reimplemented in MediaSource.

virtual Boolean Medium::isSink (  )  const [virtual, inherited]

Reimplemented in MediaSink.

virtual Boolean Medium::isRTCPInstance (  )  const [virtual, inherited]

Reimplemented in RTCPInstance.

virtual Boolean Medium::isRTSPClient (  )  const [virtual, inherited]

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer (  )  const [virtual, inherited]

Reimplemented in RTSPServer.

virtual Boolean Medium::isMediaSession (  )  const [virtual, inherited]

Reimplemented in MediaSession.

virtual Boolean Medium::isDarwinInjector (  )  const [virtual, inherited]

Reimplemented in DarwinInjector.

TaskToken& Medium::nextTask (  )  [inline, protected, inherited]

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

00078                         {
00079         return fNextTask;
00080   }


Friends And Related Function Documentation

friend class ServerMediaSubsessionIterator [friend]

Definition at line 95 of file ServerMediaSession.hh.

friend class MediaLookupTable [friend, inherited]

Definition at line 74 of file Media.hh.


Field Documentation

Boolean ServerMediaSession::fIsSSM [private]

Definition at line 92 of file ServerMediaSession.hh.

ServerMediaSubsession* ServerMediaSession::fSubsessionsHead [private]

Definition at line 96 of file ServerMediaSession.hh.

ServerMediaSubsession* ServerMediaSession::fSubsessionsTail [private]

Definition at line 97 of file ServerMediaSession.hh.

unsigned ServerMediaSession::fSubsessionCounter [private]

Definition at line 98 of file ServerMediaSession.hh.

Referenced by numSubsessions().

char* ServerMediaSession::fStreamName [private]

Definition at line 100 of file ServerMediaSession.hh.

Referenced by streamName().

char* ServerMediaSession::fInfoSDPString [private]

Definition at line 101 of file ServerMediaSession.hh.

char* ServerMediaSession::fDescriptionSDPString [private]

Definition at line 102 of file ServerMediaSession.hh.

char* ServerMediaSession::fMiscSDPLines [private]

Definition at line 103 of file ServerMediaSession.hh.

struct timeval ServerMediaSession::fCreationTime [read, private]

Definition at line 104 of file ServerMediaSession.hh.

unsigned ServerMediaSession::fReferenceCount [private]

Definition at line 105 of file ServerMediaSession.hh.

Referenced by decrementReferenceCount(), incrementReferenceCount(), and referenceCount().

Boolean ServerMediaSession::fDeleteWhenUnreferenced [private]

Definition at line 106 of file ServerMediaSession.hh.

Referenced by deleteWhenUnreferenced().


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