live
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
PassiveServerMediaSubsession Class Reference

#include <PassiveServerMediaSubsession.hh>

Inheritance diagram for PassiveServerMediaSubsession:
Inheritance graph
[legend]
Collaboration diagram for PassiveServerMediaSubsession:
Collaboration graph
[legend]

Public Member Functions

unsigned trackNumber () const
 
char const * trackId ()
 
virtual void pauseStream (unsigned clientSessionId, void *streamToken)
 
virtual void seekStream (unsigned clientSessionId, void *streamToken, double &seekNPT, double streamDuration, u_int64_t &numBytes)
 
virtual void seekStream (unsigned clientSessionId, void *streamToken, char *&absStart, char *&absEnd)
 
virtual void nullSeekStream (unsigned clientSessionId, void *streamToken, double streamEndTime, u_int64_t &numBytes)
 
virtual void setStreamScale (unsigned clientSessionId, void *streamToken, float scale)
 
virtual FramedSourcegetStreamSource (void *streamToken)
 
virtual void testScaleFactor (float &scale)
 
virtual float duration () const
 
virtual void getAbsoluteTimeRange (char *&absStartTime, char *&absEndTime) const
 
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 isServerMediaSession () const
 

Static Public Member Functions

static PassiveServerMediaSubsessioncreateNew (RTPSink &rtpSink, RTCPInstance *rtcpInstance=NULL)
 
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

 PassiveServerMediaSubsession (RTPSink &rtpSink, RTCPInstance *rtcpInstance)
 
virtual ~PassiveServerMediaSubsession ()
 
virtual Boolean rtcpIsMuxed ()
 
virtual char const * sdpLines (int addressFamily)
 
virtual void getStreamParameters (unsigned clientSessionId, struct sockaddr_storage const &clientAddress, Port const &clientRTPPort, Port const &clientRTCPPort, int tcpSocketNum, unsigned char rtpChannelId, unsigned char rtcpChannelId, TLSState *tlsSTate, struct sockaddr_storage &destinationAddress, u_int8_t &destinationTTL, Boolean &isMulticast, Port &serverRTPPort, Port &serverRTCPPort, void *&streamToken)
 
virtual void startStream (unsigned clientSessionId, void *streamToken, TaskFunc *rtcpRRHandler, void *rtcpRRHandlerClientData, unsigned short &rtpSeqNum, unsigned &rtpTimestamp, ServerRequestAlternativeByteHandler *serverRequestAlternativeByteHandler, void *serverRequestAlternativeByteHandlerClientData)
 
virtual float getCurrentNPT (void *streamToken)
 
virtual void getRTPSinkandRTCP (void *streamToken, RTPSink *&rtpSink, RTCPInstance *&rtcp)
 
virtual void deleteStream (unsigned clientSessionId, void *&streamToken)
 
char const * rangeSDPLine () const
 
TaskTokennextTask ()
 

Protected Attributes

char * fSDPLines
 
RTPSinkfRTPSink
 
RTCPInstancefRTCPInstance
 
HashTablefClientRTCPSourceRecords
 
ServerMediaSessionfParentSession
 

Private Attributes

ServerMediaSubsessionfNext
 
unsigned fTrackNumber
 
char const * fTrackId
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Detailed Description

Definition at line 36 of file PassiveServerMediaSubsession.hh.

Constructor & Destructor Documentation

◆ PassiveServerMediaSubsession()

PassiveServerMediaSubsession::PassiveServerMediaSubsession ( RTPSink rtpSink,
RTCPInstance rtcpInstance 
)
protected

◆ ~PassiveServerMediaSubsession()

virtual PassiveServerMediaSubsession::~PassiveServerMediaSubsession ( )
protectedvirtual

Member Function Documentation

◆ 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 PassiveServerMediaSubsession * PassiveServerMediaSubsession::createNew ( RTPSink rtpSink,
RTCPInstance rtcpInstance = NULL 
)
static

◆ deleteStream()

virtual void PassiveServerMediaSubsession::deleteStream ( unsigned  clientSessionId,
void *&  streamToken 
)
protectedvirtual

Reimplemented from ServerMediaSubsession.

◆ duration()

virtual float ServerMediaSubsession::duration ( ) const
virtualinherited

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

◆ getAbsoluteTimeRange()

virtual void ServerMediaSubsession::getAbsoluteTimeRange ( char *&  absStartTime,
char *&  absEndTime 
) const
virtualinherited

◆ getCurrentNPT()

virtual float PassiveServerMediaSubsession::getCurrentNPT ( void *  streamToken)
protectedvirtual

Reimplemented from ServerMediaSubsession.

◆ getRTPSinkandRTCP()

virtual void PassiveServerMediaSubsession::getRTPSinkandRTCP ( void *  streamToken,
RTPSink *&  rtpSink,
RTCPInstance *&  rtcp 
)
protectedvirtual

Implements ServerMediaSubsession.

◆ getStreamParameters()

virtual void PassiveServerMediaSubsession::getStreamParameters ( unsigned  clientSessionId,
struct sockaddr_storage const &  clientAddress,
Port const &  clientRTPPort,
Port const &  clientRTCPPort,
int  tcpSocketNum,
unsigned char  rtpChannelId,
unsigned char  rtcpChannelId,
TLSState tlsSTate,
struct sockaddr_storage &  destinationAddress,
u_int8_t &  destinationTTL,
Boolean isMulticast,
Port serverRTPPort,
Port serverRTCPPort,
void *&  streamToken 
)
protectedvirtual

Implements ServerMediaSubsession.

◆ getStreamSource()

virtual FramedSource * ServerMediaSubsession::getStreamSource ( void *  streamToken)
virtualinherited

Reimplemented in OnDemandServerMediaSubsession.

◆ 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 Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

◆ isSink()

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ lookupByName()

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.

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.

◆ nullSeekStream()

virtual void ServerMediaSubsession::nullSeekStream ( unsigned  clientSessionId,
void *  streamToken,
double  streamEndTime,
u_int64_t &  numBytes 
)
virtualinherited

Reimplemented in OnDemandServerMediaSubsession.

◆ pauseStream()

virtual void ServerMediaSubsession::pauseStream ( unsigned  clientSessionId,
void *  streamToken 
)
virtualinherited

◆ rangeSDPLine()

char const * ServerMediaSubsession::rangeSDPLine ( ) const
protectedinherited

◆ rtcpIsMuxed()

virtual Boolean PassiveServerMediaSubsession::rtcpIsMuxed ( )
protectedvirtual

◆ sdpLines()

virtual char const * PassiveServerMediaSubsession::sdpLines ( int  addressFamily)
protectedvirtual

Implements ServerMediaSubsession.

◆ seekStream() [1/2]

virtual void ServerMediaSubsession::seekStream ( unsigned  clientSessionId,
void *  streamToken,
char *&  absStart,
char *&  absEnd 
)
virtualinherited

Reimplemented in OnDemandServerMediaSubsession.

◆ seekStream() [2/2]

virtual void ServerMediaSubsession::seekStream ( unsigned  clientSessionId,
void *  streamToken,
double &  seekNPT,
double  streamDuration,
u_int64_t &  numBytes 
)
virtualinherited

◆ setStreamScale()

virtual void ServerMediaSubsession::setStreamScale ( unsigned  clientSessionId,
void *  streamToken,
float  scale 
)
virtualinherited

◆ startStream()

virtual void PassiveServerMediaSubsession::startStream ( unsigned  clientSessionId,
void *  streamToken,
TaskFunc rtcpRRHandler,
void *  rtcpRRHandlerClientData,
unsigned short &  rtpSeqNum,
unsigned &  rtpTimestamp,
ServerRequestAlternativeByteHandler serverRequestAlternativeByteHandler,
void *  serverRequestAlternativeByteHandlerClientData 
)
protectedvirtual

Implements ServerMediaSubsession.

◆ testScaleFactor()

virtual void ServerMediaSubsession::testScaleFactor ( float &  scale)
virtualinherited

◆ trackId()

char const * ServerMediaSubsession::trackId ( )
inherited

◆ trackNumber()

unsigned ServerMediaSubsession::trackNumber ( ) const
inlineinherited

Definition at line 125 of file ServerMediaSession.hh.

125{ return fTrackNumber; }

References ServerMediaSubsession::fTrackNumber.

Field Documentation

◆ fClientRTCPSourceRecords

HashTable* PassiveServerMediaSubsession::fClientRTCPSourceRecords
protected

Definition at line 80 of file PassiveServerMediaSubsession.hh.

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fNext

ServerMediaSubsession* ServerMediaSubsession::fNext
privateinherited

Definition at line 194 of file ServerMediaSession.hh.

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fParentSession

ServerMediaSession* ServerMediaSubsession::fParentSession
protectedinherited

Definition at line 189 of file ServerMediaSession.hh.

◆ fRTCPInstance

RTCPInstance* PassiveServerMediaSubsession::fRTCPInstance
protected

Definition at line 79 of file PassiveServerMediaSubsession.hh.

◆ fRTPSink

RTPSink& PassiveServerMediaSubsession::fRTPSink
protected

Definition at line 78 of file PassiveServerMediaSubsession.hh.

◆ fSDPLines

char* PassiveServerMediaSubsession::fSDPLines
protected

Definition at line 77 of file PassiveServerMediaSubsession.hh.

◆ fTrackId

char const* ServerMediaSubsession::fTrackId
privateinherited

Definition at line 197 of file ServerMediaSession.hh.

◆ fTrackNumber

unsigned ServerMediaSubsession::fTrackNumber
privateinherited

Definition at line 196 of file ServerMediaSession.hh.

Referenced by ServerMediaSubsession::trackNumber().


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