live
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes | Protected Member Functions | Protected Attributes
RTSPRegisterOrDeregisterSender Class Reference

#include <RTSPRegisterSender.hh>

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

Data Structures

class  RequestRecord_REGISTER_or_DEREGISTER
 

Public Types

typedef void() responseHandler(RTSPClient *rtspClient, int resultCode, char *resultString)
 

Public Member Functions

virtual ~RTSPRegisterOrDeregisterSender ()
 
unsigned sendDescribeCommand (responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendOptionsCommand (responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendAnnounceCommand (char const *sdpDescription, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendSetupCommand (MediaSubsession &subsession, responseHandler *responseHandler, Boolean streamOutgoing=False, Boolean streamUsingTCP=False, Boolean forceMulticastOnUnspecified=False, Authenticator *authenticator=NULL)
 
unsigned sendPlayCommand (MediaSession &session, responseHandler *responseHandler, double start=0.0f, double end=-1.0f, float scale=1.0f, Authenticator *authenticator=NULL)
 
unsigned sendPlayCommand (MediaSubsession &subsession, responseHandler *responseHandler, double start=0.0f, double end=-1.0f, float scale=1.0f, Authenticator *authenticator=NULL)
 
unsigned sendPlayCommand (MediaSession &session, responseHandler *responseHandler, char const *absStartTime, char const *absEndTime=NULL, float scale=1.0f, Authenticator *authenticator=NULL)
 
unsigned sendPlayCommand (MediaSubsession &subsession, responseHandler *responseHandler, char const *absStartTime, char const *absEndTime=NULL, float scale=1.0f, Authenticator *authenticator=NULL)
 
unsigned sendPauseCommand (MediaSession &session, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendPauseCommand (MediaSubsession &subsession, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendRecordCommand (MediaSession &session, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendRecordCommand (MediaSubsession &subsession, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendTeardownCommand (MediaSession &session, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendTeardownCommand (MediaSubsession &subsession, responseHandler *responseHandler, Authenticator *authenticator=NULL)
 
unsigned sendSetParameterCommand (MediaSession &session, responseHandler *responseHandler, char const *parameterName, char const *parameterValue, Authenticator *authenticator=NULL)
 
unsigned sendGetParameterCommand (MediaSession &session, responseHandler *responseHandler, char const *parameterName, Authenticator *authenticator=NULL)
 
void sendDummyUDPPackets (MediaSession &session, unsigned numDummyPackets=2)
 
void sendDummyUDPPackets (MediaSubsession &subsession, unsigned numDummyPackets=2)
 
void setSpeed (MediaSession &session, float speed=1.0f)
 
Boolean changeResponseHandler (unsigned cseq, responseHandler *newResponseHandler)
 
int socketNum () const
 
Boolean parseRTSPURL (char const *url, char *&username, char *&password, NetAddress &address, portNumBits &portNum, char const **urlSuffix=NULL)
 
void setUserAgentString (char const *userAgentName)
 
void disallowBasicAuthentication ()
 
unsigned sessionTimeoutParameter () const
 
char const * url () const
 
void useTLS ()
 
UsageEnvironmentenvir () const
 
char const * name () const
 
virtual Boolean isSource () const
 
virtual Boolean isSink () const
 
virtual Boolean isRTCPInstance () const
 
virtual Boolean isRTSPServer () const
 
virtual Boolean isMediaSession () const
 
virtual Boolean isServerMediaSession () const
 

Static Public Member Functions

static RTSPClientcreateNew (UsageEnvironment &env, char const *rtspURL, int verbosityLevel=0, char const *applicationName=NULL, portNumBits tunnelOverHTTPPortNum=0, int socketNumToServer=-1)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sourceName, RTSPClient *&resultClient)
 
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

u_int16_t desiredMaxIncomingPacketSize
 

Static Public Attributes

static unsigned responseBufferSize
 

Protected Member Functions

 RTSPRegisterOrDeregisterSender (UsageEnvironment &env, char const *remoteClientNameOrAddress, portNumBits remoteClientPortNum, Authenticator *authenticator, int verbosityLevel, char const *applicationName)
 
void reset ()
 
void setBaseURL (char const *url)
 
int grabSocket ()
 
virtual unsigned sendRequest (RequestRecord *request)
 
virtual Boolean setRequestFields (RequestRecord *request, char *&cmdURL, Boolean &cmdURLWasAllocated, char const *&protocolStr, char *&extraHeaders, Boolean &extraHeadersWereAllocated)
 
virtual int connectToServer (int socketNum, portNumBits remotePortNum)
 
TaskTokennextTask ()
 

Protected Attributes

portNumBits fRemoteClientPortNum
 
int fVerbosityLevel
 
unsigned fCSeq
 
Authenticator fCurrentAuthenticator
 
Boolean fAllowBasicAuthentication
 
struct sockaddr_storage fServerAddress
 

Detailed Description

Definition at line 29 of file RTSPRegisterSender.hh.

Member Typedef Documentation

◆ responseHandler

typedef void() RTSPClient::responseHandler(RTSPClient *rtspClient, int resultCode, char *resultString)
inherited

Definition at line 55 of file RTSPClient.hh.

Constructor & Destructor Documentation

◆ ~RTSPRegisterOrDeregisterSender()

virtual RTSPRegisterOrDeregisterSender::~RTSPRegisterOrDeregisterSender ( )
virtual

◆ RTSPRegisterOrDeregisterSender()

RTSPRegisterOrDeregisterSender::RTSPRegisterOrDeregisterSender ( UsageEnvironment env,
char const *  remoteClientNameOrAddress,
portNumBits  remoteClientPortNum,
Authenticator authenticator,
int  verbosityLevel,
char const *  applicationName 
)
protected

Member Function Documentation

◆ changeResponseHandler()

Boolean RTSPClient::changeResponseHandler ( unsigned  cseq,
responseHandler newResponseHandler 
)
inherited

◆ close() [1/2]

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

◆ close() [2/2]

static void Medium::close ( Medium medium)
staticinherited

◆ connectToServer()

virtual int RTSPClient::connectToServer ( int  socketNum,
portNumBits  remotePortNum 
)
protectedvirtualinherited

Reimplemented in ProxyRTSPClient.

◆ createNew()

static RTSPClient* RTSPClient::createNew ( UsageEnvironment env,
char const *  rtspURL,
int  verbosityLevel = 0,
char const *  applicationName = NULL,
portNumBits  tunnelOverHTTPPortNum = 0,
int  socketNumToServer = -1 
)
staticinherited

◆ disallowBasicAuthentication()

void RTSPClient::disallowBasicAuthentication ( )
inlineinherited

Definition at line 185 of file RTSPClient.hh.

const Boolean False
Definition: Boolean.hh:28
Boolean fAllowBasicAuthentication
Definition: RTSPClient.hh:338

References RTSPClient::fAllowBasicAuthentication, and False.

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ grabSocket()

int RTSPClient::grabSocket ( )
protectedinherited

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ 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() [1/2]

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

◆ lookupByName() [2/2]

static Boolean RTSPClient::lookupByName ( UsageEnvironment env,
char const *  sourceName,
RTSPClient *&  resultClient 
)
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.

◆ parseRTSPURL()

Boolean RTSPClient::parseRTSPURL ( char const *  url,
char *&  username,
char *&  password,
NetAddress address,
portNumBits portNum,
char const **  urlSuffix = NULL 
)
inherited

◆ reset()

void RTSPClient::reset ( )
protectedinherited

◆ sendAnnounceCommand()

unsigned RTSPClient::sendAnnounceCommand ( char const *  sdpDescription,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendDescribeCommand()

unsigned RTSPClient::sendDescribeCommand ( responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendDummyUDPPackets() [1/2]

void RTSPClient::sendDummyUDPPackets ( MediaSession session,
unsigned  numDummyPackets = 2 
)
inherited

◆ sendDummyUDPPackets() [2/2]

void RTSPClient::sendDummyUDPPackets ( MediaSubsession subsession,
unsigned  numDummyPackets = 2 
)
inherited

◆ sendGetParameterCommand()

unsigned RTSPClient::sendGetParameterCommand ( MediaSession session,
responseHandler responseHandler,
char const *  parameterName,
Authenticator authenticator = NULL 
)
inherited

◆ sendOptionsCommand()

unsigned RTSPClient::sendOptionsCommand ( responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendPauseCommand() [1/2]

unsigned RTSPClient::sendPauseCommand ( MediaSession session,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendPauseCommand() [2/2]

unsigned RTSPClient::sendPauseCommand ( MediaSubsession subsession,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendPlayCommand() [1/4]

unsigned RTSPClient::sendPlayCommand ( MediaSession session,
responseHandler responseHandler,
double  start = 0.0f,
double  end = -1.0f,
float  scale = 1.0f,
Authenticator authenticator = NULL 
)
inherited

◆ sendPlayCommand() [2/4]

unsigned RTSPClient::sendPlayCommand ( MediaSubsession subsession,
responseHandler responseHandler,
double  start = 0.0f,
double  end = -1.0f,
float  scale = 1.0f,
Authenticator authenticator = NULL 
)
inherited

◆ sendPlayCommand() [3/4]

unsigned RTSPClient::sendPlayCommand ( MediaSession session,
responseHandler responseHandler,
char const *  absStartTime,
char const *  absEndTime = NULL,
float  scale = 1.0f,
Authenticator authenticator = NULL 
)
inherited

◆ sendPlayCommand() [4/4]

unsigned RTSPClient::sendPlayCommand ( MediaSubsession subsession,
responseHandler responseHandler,
char const *  absStartTime,
char const *  absEndTime = NULL,
float  scale = 1.0f,
Authenticator authenticator = NULL 
)
inherited

◆ sendRecordCommand() [1/2]

unsigned RTSPClient::sendRecordCommand ( MediaSession session,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendRecordCommand() [2/2]

unsigned RTSPClient::sendRecordCommand ( MediaSubsession subsession,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendRequest()

virtual unsigned RTSPClient::sendRequest ( RequestRecord request)
protectedvirtualinherited

◆ sendSetParameterCommand()

unsigned RTSPClient::sendSetParameterCommand ( MediaSession session,
responseHandler responseHandler,
char const *  parameterName,
char const *  parameterValue,
Authenticator authenticator = NULL 
)
inherited

◆ sendSetupCommand()

unsigned RTSPClient::sendSetupCommand ( MediaSubsession subsession,
responseHandler responseHandler,
Boolean  streamOutgoing = False,
Boolean  streamUsingTCP = False,
Boolean  forceMulticastOnUnspecified = False,
Authenticator authenticator = NULL 
)
inherited

◆ sendTeardownCommand() [1/2]

unsigned RTSPClient::sendTeardownCommand ( MediaSession session,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sendTeardownCommand() [2/2]

unsigned RTSPClient::sendTeardownCommand ( MediaSubsession subsession,
responseHandler responseHandler,
Authenticator authenticator = NULL 
)
inherited

◆ sessionTimeoutParameter()

unsigned RTSPClient::sessionTimeoutParameter ( ) const
inlineinherited

Definition at line 189 of file RTSPClient.hh.

189 { return fSessionTimeoutParameter; }
unsigned fSessionTimeoutParameter
Definition: RTSPClient.hh:349

References RTSPClient::fSessionTimeoutParameter.

◆ setBaseURL()

void RTSPClient::setBaseURL ( char const *  url)
protectedinherited

◆ setRequestFields()

virtual Boolean RTSPClient::setRequestFields ( RequestRecord request,
char *&  cmdURL,
Boolean cmdURLWasAllocated,
char const *&  protocolStr,
char *&  extraHeaders,
Boolean extraHeadersWereAllocated 
)
protectedvirtualinherited

Reimplemented in RTSPDeregisterSender, and RTSPRegisterSender.

◆ setSpeed()

void RTSPClient::setSpeed ( MediaSession session,
float  speed = 1.0f 
)
inherited

◆ setUserAgentString()

void RTSPClient::setUserAgentString ( char const *  userAgentName)
inherited

◆ socketNum()

int RTSPClient::socketNum ( ) const
inlineinherited

Definition at line 171 of file RTSPClient.hh.

171 { return fInputSocketNum; }
int fInputSocketNum
Definition: RTSPClient.hh:345

References RTSPClient::fInputSocketNum.

◆ url()

char const* RTSPClient::url ( ) const
inlineinherited

Definition at line 191 of file RTSPClient.hh.

191 { return fBaseURL; }
char * fBaseURL
Definition: RTSPClient.hh:346

References RTSPClient::fBaseURL.

◆ useTLS()

void RTSPClient::useTLS ( )
inlineinherited

Definition at line 193 of file RTSPClient.hh.

193 { fTLS.isNeeded = True; }
TLSState fTLS
Definition: RTSPClient.hh:360
Boolean isNeeded
Definition: TLSState.hh:40
const Boolean True
Definition: Boolean.hh:31

References RTSPClient::fTLS, TLSState::isNeeded, and True.

Field Documentation

◆ desiredMaxIncomingPacketSize

u_int16_t RTSPClient::desiredMaxIncomingPacketSize
inherited

Definition at line 330 of file RTSPClient.hh.

◆ fAllowBasicAuthentication

Boolean RTSPClient::fAllowBasicAuthentication
protectedinherited

Definition at line 338 of file RTSPClient.hh.

Referenced by RTSPClient::disallowBasicAuthentication().

◆ fCSeq

unsigned RTSPClient::fCSeq
protectedinherited

Definition at line 336 of file RTSPClient.hh.

◆ fCurrentAuthenticator

Authenticator RTSPClient::fCurrentAuthenticator
protectedinherited

Definition at line 337 of file RTSPClient.hh.

◆ fRemoteClientPortNum

portNumBits RTSPRegisterOrDeregisterSender::fRemoteClientPortNum
protected

Definition at line 53 of file RTSPRegisterSender.hh.

◆ fServerAddress

struct sockaddr_storage RTSPClient::fServerAddress
protectedinherited

Definition at line 339 of file RTSPClient.hh.

◆ fVerbosityLevel

int RTSPClient::fVerbosityLevel
protectedinherited

Definition at line 335 of file RTSPClient.hh.

◆ responseBufferSize

unsigned RTSPClient::responseBufferSize
staticinherited

Definition at line 195 of file RTSPClient.hh.


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