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)
 
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
 
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)
 
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
 

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 ClientConnectioncreateNewClientConnection (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 ClientSessioncreateNewClientSession (u_int32_t sessionId)
 
void cleanup ()
 
void incomingConnectionHandler ()
 
void incomingConnectionHandlerOnSocket (int serverSocket)
 
TaskTokennextTask ()
 

Static Protected Member Functions

static int setUpOurSocket (UsageEnvironment &env, Port &ourPort)
 
static void incomingConnectionHandler (void *, int)
 

Protected Attributes

int fServerSocket
 
Port fServerPort
 
unsigned fReclamationSeconds
 
HashTablefServerMediaSessions
 
HashTablefClientConnections
 
HashTablefClientSessions
 

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 46 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 GenericMediaServer::addServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
virtual char const* RTSPServer::allowedCommandNames ( )
protectedvirtualinherited
void GenericMediaServer::cleanup ( )
protectedinherited
static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
void GenericMediaServer::closeAllClientSessionsForServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
void GenericMediaServer::closeAllClientSessionsForServerMediaSession ( char const *  streamName)
inherited
static RTSPServerSupportingHTTPStreaming* RTSPServerSupportingHTTPStreaming::createNew ( UsageEnvironment env,
Port  rtspPort = 554,
UserAuthenticationDatabase authDatabase = NULL,
unsigned  reclamationTestSeconds = 65 
)
static
virtual ClientConnection* RTSPServerSupportingHTTPStreaming::createNewClientConnection ( int  clientSocket,
struct sockaddr_in  clientAddr 
)
protectedvirtual

Reimplemented from RTSPServer.

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

Definition at line 80 of file RTSPServer.hh.

References RTSPServer::fAllowStreamingRTPOverTCP, and False.

80  {
82  }
const Boolean False
Definition: Boolean.hh:28
Boolean fAllowStreamingRTPOverTCP
Definition: RTSPServer.hh:295
UsageEnvironment& Medium::envir ( ) const
inlineinherited
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
static void GenericMediaServer::incomingConnectionHandler ( void *  ,
int   
)
staticprotectedinherited
void GenericMediaServer::incomingConnectionHandler ( )
protectedinherited
void GenericMediaServer::incomingConnectionHandlerOnSocket ( int  serverSocket)
protectedinherited
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 RTSPServer::lookupByName ( UsageEnvironment env,
char const *  name,
RTSPServer *&  resultServer 
)
staticinherited
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
virtual ServerMediaSession* GenericMediaServer::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:83
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
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 GenericMediaServer::removeServerMediaSession ( ServerMediaSession serverMediaSession)
inherited
void GenericMediaServer::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 GenericMediaServer::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

HashTable* GenericMediaServer::fClientConnections
protectedinherited

Definition at line 139 of file GenericMediaServer.hh.

HashTable* GenericMediaServer::fClientSessions
protectedinherited

Definition at line 140 of file GenericMediaServer.hh.

unsigned GenericMediaServer::fReclamationSeconds
protectedinherited

Definition at line 136 of file GenericMediaServer.hh.

HashTable* GenericMediaServer::fServerMediaSessions
protectedinherited

Definition at line 138 of file GenericMediaServer.hh.

Port GenericMediaServer::fServerPort
protectedinherited
int GenericMediaServer::fServerSocket
protectedinherited

Definition at line 134 of file GenericMediaServer.hh.


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