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

#include <RTSPServerSupportingHTTPStreaming.hh>

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

Data Structures

class  RTSPClientConnectionSupportingHTTPStreaming
 

Public Types

typedef void( responseHandlerForREGISTER )(RTSPServer *rtspServer, unsigned requestId, int resultCode, char *resultString)
 

Public Member Functions

Boolean setHTTPPort (Port httpPort)
 
void addServerMediaSession (ServerMediaSession *serverMediaSession)
 
virtual ServerMediaSessionlookupServerMediaSession (char const *streamName, Boolean isFirstLookupInSession=True)
 
void removeServerMediaSession (ServerMediaSession *serverMediaSession)
 
void removeServerMediaSession (char const *streamName)
 
void closeAllClientSessionsForServerMediaSession (ServerMediaSession *serverMediaSession)
 
void closeAllClientSessionsForServerMediaSession (char const *streamName)
 
void deleteServerMediaSession (ServerMediaSession *serverMediaSession)
 
void deleteServerMediaSession (char const *streamName)
 
unsigned registerStream (ServerMediaSession *serverMediaSession, char const *remoteClientNameOrAddress, portNumBits remoteClientPortNum, responseHandlerForREGISTER *responseHandler, char const *username=NULL, char const *password=NULL, Boolean receiveOurStreamViaTCP=False, char const *proxyURLSuffix=NULL)
 
char * rtspURL (ServerMediaSession const *serverMediaSession, int clientSocket=-1) const
 
char * rtspURLPrefix (int clientSocket=-1) const
 
UserAuthenticationDatabasesetAuthenticationDatabase (UserAuthenticationDatabase *newDB)
 
void disableStreamingRTPOverTCP ()
 
Boolean setUpTunnelingOverHTTP (Port httpPort)
 
portNumBits httpServerPortNum () 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 isMediaSession () const
 
virtual Boolean isServerMediaSession () const
 
virtual Boolean isDarwinInjector () const
 

Static Public Member Functions

static
RTSPServerSupportingHTTPStreaming
createNew (UsageEnvironment &env, Port rtspPort=554, UserAuthenticationDatabase *authDatabase=NULL, unsigned reclamationTestSeconds=65)
 
static Boolean lookupByName (UsageEnvironment &env, char const *name, RTSPServer *&resultServer)
 
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

 RTSPServerSupportingHTTPStreaming (UsageEnvironment &env, int ourSocket, Port ourPort, UserAuthenticationDatabase *authDatabase, unsigned reclamationTestSeconds)
 
virtual ~RTSPServerSupportingHTTPStreaming ()
 
virtual RTSPClientConnectioncreateNewClientConnection (int clientSocket, struct sockaddr_in clientAddr)
 
virtual char const * allowedCommandNames ()
 
virtual Boolean weImplementREGISTER (char const *proxyURLSuffix, char *&responseStr)
 
virtual void implementCmd_REGISTER (char const *url, char const *urlSuffix, int socketToRemoteServer, Boolean deliverViaTCP, char const *proxyURLSuffix)
 
virtual
UserAuthenticationDatabase
getAuthenticationDatabaseForCommand (char const *cmdName)
 
virtual Boolean specialClientAccessCheck (int clientSocket, struct sockaddr_in &clientAddr, char const *urlSuffix)
 
virtual Boolean specialClientUserAccessCheck (int clientSocket, struct sockaddr_in &clientAddr, char const *urlSuffix, char const *username)
 
virtual RTSPClientSessioncreateNewClientSession (u_int32_t sessionId)
 
TaskTokennextTask ()
 

Static Protected Member Functions

static int setUpOurSocket (UsageEnvironment &env, Port &ourPort)
 

Protected Attributes

Port fRTSPServerPort
 

Detailed Description

Definition at line 34 of file RTSPServerSupportingHTTPStreaming.hh.

Member Typedef Documentation

typedef void( RTSPServer::responseHandlerForREGISTER)(RTSPServer *rtspServer, unsigned requestId, int resultCode, char *resultString)
inherited

Definition at line 106 of file RTSPServer.hh.

Constructor & Destructor Documentation

RTSPServerSupportingHTTPStreaming::RTSPServerSupportingHTTPStreaming ( UsageEnvironment env,
int  ourSocket,
Port  ourPort,
UserAuthenticationDatabase authDatabase,
unsigned  reclamationTestSeconds 
)
protected
virtual RTSPServerSupportingHTTPStreaming::~RTSPServerSupportingHTTPStreaming ( )
protectedvirtual

Member Function Documentation

void RTSPServer::addServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
virtual char const* RTSPServer::allowedCommandNames ( )
protectedvirtualinherited
static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
void RTSPServer::closeAllClientSessionsForServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
void RTSPServer::closeAllClientSessionsForServerMediaSession ( char const *  streamName)
inherited
static RTSPServerSupportingHTTPStreaming* RTSPServerSupportingHTTPStreaming::createNew ( UsageEnvironment env,
Port  rtspPort = 554,
UserAuthenticationDatabase authDatabase = NULL,
unsigned  reclamationTestSeconds = 65 
)
static
virtual RTSPClientConnection* RTSPServerSupportingHTTPStreaming::createNewClientConnection ( int  clientSocket,
struct sockaddr_in  clientAddr 
)
protectedvirtual

Reimplemented from RTSPServer.

virtual RTSPClientSession* RTSPServer::createNewClientSession ( u_int32_t  sessionId)
protectedvirtualinherited
void RTSPServer::deleteServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
void RTSPServer::deleteServerMediaSession ( char const *  streamName)
inherited
void RTSPServer::disableStreamingRTPOverTCP ( )
inlineinherited

Definition at line 140 of file RTSPServer.hh.

References RTSPServer::fAllowStreamingRTPOverTCP, and False.

140  {
142  }
const Boolean False
Definition: Boolean.hh:28
Boolean fAllowStreamingRTPOverTCP
Definition: RTSPServer.hh:381
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
virtual UserAuthenticationDatabase* RTSPServer::getAuthenticationDatabaseForCommand ( char const *  cmdName)
protectedvirtualinherited

Reimplemented in RTSPServerWithREGISTERProxying.

portNumBits RTSPServer::httpServerPortNum ( ) const
inherited
virtual void RTSPServer::implementCmd_REGISTER ( char const *  url,
char const *  urlSuffix,
int  socketToRemoteServer,
Boolean  deliverViaTCP,
char const *  proxyURLSuffix 
)
protectedvirtualinherited
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::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
static Boolean RTSPServer::lookupByName ( UsageEnvironment env,
char const *  name,
RTSPServer *&  resultServer 
)
staticinherited
virtual ServerMediaSession* RTSPServer::lookupServerMediaSession ( char const *  streamName,
Boolean  isFirstLookupInSession = True 
)
virtualinherited
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 RTSPServer::registerStream ( ServerMediaSession serverMediaSession,
char const *  remoteClientNameOrAddress,
portNumBits  remoteClientPortNum,
responseHandlerForREGISTER responseHandler,
char const *  username = NULL,
char const *  password = NULL,
Boolean  receiveOurStreamViaTCP = False,
char const *  proxyURLSuffix = NULL 
)
inherited
void RTSPServer::removeServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
void RTSPServer::removeServerMediaSession ( char const *  streamName)
inherited
char* RTSPServer::rtspURL ( ServerMediaSession const *  serverMediaSession,
int  clientSocket = -1 
) const
inherited
char* RTSPServer::rtspURLPrefix ( int  clientSocket = -1) const
inherited
UserAuthenticationDatabase* RTSPServer::setAuthenticationDatabase ( UserAuthenticationDatabase newDB)
inherited
Boolean RTSPServerSupportingHTTPStreaming::setHTTPPort ( Port  httpPort)
inline

Definition at line 40 of file RTSPServerSupportingHTTPStreaming.hh.

References RTSPServer::setUpTunnelingOverHTTP().

40 { return setUpTunnelingOverHTTP(httpPort); }
Boolean setUpTunnelingOverHTTP(Port httpPort)
static int RTSPServer::setUpOurSocket ( UsageEnvironment env,
Port ourPort 
)
staticprotectedinherited
Boolean RTSPServer::setUpTunnelingOverHTTP ( Port  httpPort)
inherited

Referenced by setHTTPPort().

virtual Boolean RTSPServer::specialClientAccessCheck ( int  clientSocket,
struct sockaddr_in &  clientAddr,
char const *  urlSuffix 
)
protectedvirtualinherited
virtual Boolean RTSPServer::specialClientUserAccessCheck ( int  clientSocket,
struct sockaddr_in &  clientAddr,
char const *  urlSuffix,
char const *  username 
)
protectedvirtualinherited
virtual Boolean RTSPServer::weImplementREGISTER ( char const *  proxyURLSuffix,
char *&  responseStr 
)
protectedvirtualinherited

Field Documentation

Port RTSPServer::fRTSPServerPort
protectedinherited

Definition at line 360 of file RTSPServer.hh.

Referenced by HandlerServerForREGISTERCommand::serverPortNum().


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