live
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
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
 
struct timeval fCreationTime
 
unsigned fReferenceCount
 
Boolean fDeleteWhenUnreferenced
 

Friends

class ServerMediaSubsessionIterator
 

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 ( )
protectedvirtual

Member Function Documentation

Boolean ServerMediaSession::addSubsession ( ServerMediaSubsession subsession)
static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
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
void ServerMediaSession::decrementReferenceCount ( )
inline

Definition at line 71 of file ServerMediaSession.hh.

References fReferenceCount.

71 { if (fReferenceCount > 0) --fReferenceCount; }
void ServerMediaSession::deleteAllSubsessions ( )
Boolean& ServerMediaSession::deleteWhenUnreferenced ( )
inline

Definition at line 72 of file ServerMediaSession.hh.

References fDeleteWhenUnreferenced.

72 { return fDeleteWhenUnreferenced; }
float ServerMediaSession::duration ( ) const
UsageEnvironment& Medium::envir ( ) const
inlineinherited

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

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

59 {return fEnviron;}
UsageEnvironment & fEnviron
Definition: Media.hh:83
char* ServerMediaSession::generateSDPDescription ( )
void ServerMediaSession::incrementReferenceCount ( )
inline

Definition at line 70 of file ServerMediaSession.hh.

References fReferenceCount.

70 { ++fReferenceCount; }
virtual Boolean Medium::isDarwinInjector ( ) const
virtualinherited

Reimplemented in DarwinInjector.

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

virtual Boolean ServerMediaSession::isServerMediaSession ( ) const
privatevirtual

Reimplemented from Medium.

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

static Boolean ServerMediaSession::lookupByName ( UsageEnvironment env,
char const *  mediumName,
ServerMediaSession *&  resultSession 
)
static
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
char const* Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

61 {return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:84
TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

78  {
79  return fNextTask;
80  }
TaskToken fNextTask
Definition: Media.hh:85
unsigned ServerMediaSession::numSubsessions ( ) const
inline

Definition at line 61 of file ServerMediaSession.hh.

References fSubsessionCounter.

61 { return fSubsessionCounter; }
unsigned ServerMediaSession::referenceCount ( ) const
inline

Definition at line 69 of file ServerMediaSession.hh.

References fReferenceCount.

69 { return fReferenceCount; }
char const* ServerMediaSession::streamName ( ) const
inline

Definition at line 58 of file ServerMediaSession.hh.

References fStreamName.

58 { return fStreamName; }
void ServerMediaSession::testScaleFactor ( float &  scale)

Friends And Related Function Documentation

friend class ServerMediaSubsessionIterator
friend

Definition at line 95 of file ServerMediaSession.hh.

Field Documentation

struct timeval ServerMediaSession::fCreationTime
private

Definition at line 104 of file ServerMediaSession.hh.

Boolean ServerMediaSession::fDeleteWhenUnreferenced
private

Definition at line 106 of file ServerMediaSession.hh.

Referenced by deleteWhenUnreferenced().

char* ServerMediaSession::fDescriptionSDPString
private

Definition at line 102 of file ServerMediaSession.hh.

char* ServerMediaSession::fInfoSDPString
private

Definition at line 101 of file ServerMediaSession.hh.

Boolean ServerMediaSession::fIsSSM
private

Definition at line 92 of file ServerMediaSession.hh.

char* ServerMediaSession::fMiscSDPLines
private

Definition at line 103 of file ServerMediaSession.hh.

unsigned ServerMediaSession::fReferenceCount
private
char* ServerMediaSession::fStreamName
private

Definition at line 100 of file ServerMediaSession.hh.

Referenced by streamName().

unsigned ServerMediaSession::fSubsessionCounter
private

Definition at line 98 of file ServerMediaSession.hh.

Referenced by numSubsessions().

ServerMediaSubsession* ServerMediaSession::fSubsessionsHead
private

Definition at line 96 of file ServerMediaSession.hh.

ServerMediaSubsession* ServerMediaSession::fSubsessionsTail
private

Definition at line 97 of file ServerMediaSession.hh.


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