live
Public Member Functions | Static Public Member Functions | Data Fields | 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 (int addressFamily)
 
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)
 

Data Fields

Boolean streamingUsesSRTP
 
Boolean streamingIsEncrypted
 

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
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

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 ( Medium medium)
staticinherited

◆ close() [2/2]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
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.

◆ duration()

float ServerMediaSession::duration ( ) const

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

◆ generateSDPDescription()

char * ServerMediaSession::generateSDPDescription ( int  addressFamily)

◆ incrementReferenceCount()

void ServerMediaSession::incrementReferenceCount ( )
inline

Definition at line 66 of file ServerMediaSession.hh.

66{ ++fReferenceCount; }

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 Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited

◆ lookupByName() [2/2]

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

◆ name()

char const * Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

61{return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83

References Medium::fMediumName.

◆ nextTask()

TaskToken & Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

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

References Medium::fNextTask.

◆ noteLiveness()

virtual void ServerMediaSession::noteLiveness ( )
virtual

◆ numSubsessions()

unsigned ServerMediaSession::numSubsessions ( ) const
inline

Definition at line 52 of file ServerMediaSession.hh.

52{ return fSubsessionCounter; }

References fSubsessionCounter.

◆ referenceCount()

unsigned ServerMediaSession::referenceCount ( ) const
inline

Definition at line 65 of file ServerMediaSession.hh.

65{ return fReferenceCount; }

References fReferenceCount.

◆ streamName()

char const * ServerMediaSession::streamName ( ) const
inline

Definition at line 49 of file ServerMediaSession.hh.

49{ return fStreamName; }

References fStreamName.

◆ testScaleFactor()

void ServerMediaSession::testScaleFactor ( float &  scale)

Friends And Related Function Documentation

◆ ServerMediaSubsessionIterator

friend class ServerMediaSubsessionIterator
friend

Definition at line 94 of file ServerMediaSession.hh.

Field Documentation

◆ fCreationTime

struct timeval ServerMediaSession::fCreationTime
private

Definition at line 103 of file ServerMediaSession.hh.

◆ fDeleteWhenUnreferenced

Boolean ServerMediaSession::fDeleteWhenUnreferenced
private

Definition at line 105 of file ServerMediaSession.hh.

Referenced by deleteWhenUnreferenced().

◆ fDescriptionSDPString

char* ServerMediaSession::fDescriptionSDPString
private

Definition at line 101 of file ServerMediaSession.hh.

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fInfoSDPString

char* ServerMediaSession::fInfoSDPString
private

Definition at line 100 of file ServerMediaSession.hh.

◆ fIsSSM

Boolean ServerMediaSession::fIsSSM
private

Definition at line 91 of file ServerMediaSession.hh.

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fMiscSDPLines

char* ServerMediaSession::fMiscSDPLines
private

Definition at line 102 of file ServerMediaSession.hh.

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fReferenceCount

unsigned ServerMediaSession::fReferenceCount
private

◆ fStreamName

char* ServerMediaSession::fStreamName
private

Definition at line 99 of file ServerMediaSession.hh.

Referenced by streamName().

◆ fSubsessionCounter

unsigned ServerMediaSession::fSubsessionCounter
private

Definition at line 97 of file ServerMediaSession.hh.

Referenced by numSubsessions().

◆ fSubsessionsHead

ServerMediaSubsession* ServerMediaSession::fSubsessionsHead
private

Definition at line 95 of file ServerMediaSession.hh.

◆ fSubsessionsTail

ServerMediaSubsession* ServerMediaSession::fSubsessionsTail
private

Definition at line 96 of file ServerMediaSession.hh.

◆ streamingIsEncrypted

Boolean ServerMediaSession::streamingIsEncrypted

Definition at line 77 of file ServerMediaSession.hh.

◆ streamingUsesSRTP

Boolean ServerMediaSession::streamingUsesSRTP

Definition at line 76 of file ServerMediaSession.hh.


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