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
 
virtual void noteLiveness ()
 
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
 

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 33 of file ServerMediaSession.hh.

Constructor & Destructor Documentation

◆ ServerMediaSession()

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

◆ ~ServerMediaSession()

virtual ServerMediaSession::~ServerMediaSession ( )
protectedvirtual

Member Function Documentation

◆ addSubsession()

Boolean ServerMediaSession::addSubsession ( ServerMediaSubsession subsession)

◆ close() [1/2]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited

◆ close() [2/2]

static void Medium::close ( Medium medium)
staticinherited

◆ createNew()

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

◆ decrementReferenceCount()

void ServerMediaSession::decrementReferenceCount ( )
inline

Definition at line 67 of file ServerMediaSession.hh.

References fReferenceCount.

◆ deleteAllSubsessions()

void ServerMediaSession::deleteAllSubsessions ( )

◆ deleteWhenUnreferenced()

Boolean& ServerMediaSession::deleteWhenUnreferenced ( )
inline

Definition at line 68 of file ServerMediaSession.hh.

References fDeleteWhenUnreferenced.

68 { return fDeleteWhenUnreferenced; }

◆ duration()

float ServerMediaSession::duration ( ) const

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ generateSDPDescription()

char* ServerMediaSession::generateSDPDescription ( )

◆ incrementReferenceCount()

void ServerMediaSession::incrementReferenceCount ( )
inline

Definition at line 66 of file ServerMediaSession.hh.

References fReferenceCount.

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ isRTSPClient()

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

◆ isRTSPServer()

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

◆ isServerMediaSession()

virtual Boolean ServerMediaSession::isServerMediaSession ( ) const
privatevirtual

Reimplemented from Medium.

◆ isSink()

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ lookupByName() [1/2]

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

◆ lookupByName() [2/2]

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

◆ name()

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:83

◆ nextTask()

TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

References Medium::fNextTask.

77  {
78  return fNextTask;
79  }
TaskToken fNextTask
Definition: Media.hh:84

◆ noteLiveness()

virtual void ServerMediaSession::noteLiveness ( )
virtual

◆ numSubsessions()

unsigned ServerMediaSession::numSubsessions ( ) const
inline

Definition at line 52 of file ServerMediaSession.hh.

References fSubsessionCounter.

52 { return fSubsessionCounter; }

◆ referenceCount()

unsigned ServerMediaSession::referenceCount ( ) const
inline

Definition at line 65 of file ServerMediaSession.hh.

References fReferenceCount.

65 { return fReferenceCount; }

◆ streamName()

char const* ServerMediaSession::streamName ( ) const
inline

Definition at line 49 of file ServerMediaSession.hh.

References fStreamName.

49 { return fStreamName; }

◆ testScaleFactor()

void ServerMediaSession::testScaleFactor ( float &  scale)

Friends And Related Function Documentation

◆ ServerMediaSubsessionIterator

friend class ServerMediaSubsessionIterator
friend

Definition at line 91 of file ServerMediaSession.hh.

Field Documentation

◆ fCreationTime

struct timeval ServerMediaSession::fCreationTime
private

Definition at line 100 of file ServerMediaSession.hh.

◆ fDeleteWhenUnreferenced

Boolean ServerMediaSession::fDeleteWhenUnreferenced
private

Definition at line 102 of file ServerMediaSession.hh.

Referenced by deleteWhenUnreferenced().

◆ fDescriptionSDPString

char* ServerMediaSession::fDescriptionSDPString
private

Definition at line 98 of file ServerMediaSession.hh.

◆ fInfoSDPString

char* ServerMediaSession::fInfoSDPString
private

Definition at line 97 of file ServerMediaSession.hh.

◆ fIsSSM

Boolean ServerMediaSession::fIsSSM
private

Definition at line 88 of file ServerMediaSession.hh.

◆ fMiscSDPLines

char* ServerMediaSession::fMiscSDPLines
private

Definition at line 99 of file ServerMediaSession.hh.

◆ fReferenceCount

unsigned ServerMediaSession::fReferenceCount
private

◆ fStreamName

char* ServerMediaSession::fStreamName
private

Definition at line 96 of file ServerMediaSession.hh.

Referenced by streamName().

◆ fSubsessionCounter

unsigned ServerMediaSession::fSubsessionCounter
private

Definition at line 94 of file ServerMediaSession.hh.

Referenced by numSubsessions().

◆ fSubsessionsHead

ServerMediaSubsession* ServerMediaSession::fSubsessionsHead
private

Definition at line 92 of file ServerMediaSession.hh.

◆ fSubsessionsTail

ServerMediaSubsession* ServerMediaSession::fSubsessionsTail
private

Definition at line 93 of file ServerMediaSession.hh.


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