RTSPServerSupportingHTTPStreaming Class Reference

#include <RTSPServerSupportingHTTPStreaming.hh>

Inheritance diagram for RTSPServerSupportingHTTPStreaming:

Inheritance graph
[legend]
Collaboration diagram for RTSPServerSupportingHTTPStreaming:

Collaboration graph
[legend]

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)
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 RTSPServerSupportingHTTPStreamingcreateNew (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 RTSPClientConnection * createNewClientConnection (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 UserAuthenticationDatabasegetAuthenticationDatabaseForCommand (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 RTSPClientSession * createNewClientSession (u_int32_t sessionId)
TaskTokennextTask ()

Static Protected Member Functions

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

Protected Attributes

Port fRTSPServerPort

Friends

class MediaLookupTable

Data Structures

class  RTSPClientConnectionSupportingHTTPStreaming

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 105 of file RTSPServer.hh.


Constructor & Destructor Documentation

RTSPServerSupportingHTTPStreaming::RTSPServerSupportingHTTPStreaming ( UsageEnvironment env,
int  ourSocket,
Port  ourPort,
UserAuthenticationDatabase authDatabase,
unsigned  reclamationTestSeconds 
) [protected]

virtual RTSPServerSupportingHTTPStreaming::~RTSPServerSupportingHTTPStreaming (  )  [protected, virtual]


Member Function Documentation

static RTSPServerSupportingHTTPStreaming* RTSPServerSupportingHTTPStreaming::createNew ( UsageEnvironment env,
Port  rtspPort = 554,
UserAuthenticationDatabase authDatabase = NULL,
unsigned  reclamationTestSeconds = 65 
) [static]

Reimplemented from RTSPServer.

Boolean RTSPServerSupportingHTTPStreaming::setHTTPPort ( Port  httpPort  )  [inline]

Definition at line 40 of file RTSPServerSupportingHTTPStreaming.hh.

References RTSPServer::setUpTunnelingOverHTTP().

00040 { return setUpTunnelingOverHTTP(httpPort); }

virtual RTSPClientConnection* RTSPServerSupportingHTTPStreaming::createNewClientConnection ( int  clientSocket,
struct sockaddr_in  clientAddr 
) [protected, virtual]

Reimplemented from RTSPServer.

static Boolean RTSPServer::lookupByName ( UsageEnvironment env,
char const *  name,
RTSPServer *&  resultServer 
) [static, inherited]

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

void RTSPServer::addServerMediaSession ( ServerMediaSession serverMediaSession  )  [inherited]

virtual ServerMediaSession* RTSPServer::lookupServerMediaSession ( char const *  streamName  )  [virtual, inherited]

void RTSPServer::removeServerMediaSession ( ServerMediaSession serverMediaSession  )  [inherited]

void RTSPServer::removeServerMediaSession ( char const *  streamName  )  [inherited]

void RTSPServer::closeAllClientSessionsForServerMediaSession ( ServerMediaSession serverMediaSession  )  [inherited]

void RTSPServer::closeAllClientSessionsForServerMediaSession ( char const *  streamName  )  [inherited]

void RTSPServer::deleteServerMediaSession ( ServerMediaSession serverMediaSession  )  [inherited]

void RTSPServer::deleteServerMediaSession ( char const *  streamName  )  [inherited]

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]

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]

void RTSPServer::disableStreamingRTPOverTCP (  )  [inline, inherited]

Definition at line 139 of file RTSPServer.hh.

References RTSPServer::fAllowStreamingRTPOverTCP, and False.

00139                                     {
00140     fAllowStreamingRTPOverTCP = False;
00141   }

Boolean RTSPServer::setUpTunnelingOverHTTP ( Port  httpPort  )  [inherited]

Referenced by setHTTPPort().

portNumBits RTSPServer::httpServerPortNum (  )  const [inherited]

static int RTSPServer::setUpOurSocket ( UsageEnvironment env,
Port ourPort 
) [static, protected, inherited]

virtual char const* RTSPServer::allowedCommandNames (  )  [protected, virtual, inherited]

Reimplemented in HandlerServerForREGISTERCommand, and RTSPServerWithREGISTERProxying.

virtual Boolean RTSPServer::weImplementREGISTER ( char const *  proxyURLSuffix,
char *&  responseStr 
) [protected, virtual, inherited]

Reimplemented in HandlerServerForREGISTERCommand, and RTSPServerWithREGISTERProxying.

virtual void RTSPServer::implementCmd_REGISTER ( char const *  url,
char const *  urlSuffix,
int  socketToRemoteServer,
Boolean  deliverViaTCP,
char const *  proxyURLSuffix 
) [protected, virtual, inherited]

Reimplemented in HandlerServerForREGISTERCommand, and RTSPServerWithREGISTERProxying.

virtual UserAuthenticationDatabase* RTSPServer::getAuthenticationDatabaseForCommand ( char const *  cmdName  )  [protected, virtual, inherited]

Reimplemented in RTSPServerWithREGISTERProxying.

virtual Boolean RTSPServer::specialClientAccessCheck ( int  clientSocket,
struct sockaddr_in &  clientAddr,
char const *  urlSuffix 
) [protected, virtual, inherited]

virtual Boolean RTSPServer::specialClientUserAccessCheck ( int  clientSocket,
struct sockaddr_in &  clientAddr,
char const *  urlSuffix,
char const *  username 
) [protected, virtual, inherited]

virtual RTSPClientSession* RTSPServer::createNewClientSession ( u_int32_t  sessionId  )  [protected, virtual, inherited]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
) [static, inherited]

static void Medium::close ( Medium medium  )  [static, inherited]

UsageEnvironment& Medium::envir (  )  const [inline, inherited]

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

Referenced by MediaSubsession::env(), RTSPServer::RTSPClientSession::envir(), RTSPServer::RTSPClientConnection::envir(), and RTPInterface::envir().

00059 {return fEnviron;}

char const* Medium::name (  )  const [inline, inherited]

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

00061 {return fMediumName;}

virtual Boolean Medium::isSource (  )  const [virtual, inherited]

Reimplemented in MediaSource.

virtual Boolean Medium::isSink (  )  const [virtual, inherited]

Reimplemented in MediaSink.

virtual Boolean Medium::isRTCPInstance (  )  const [virtual, inherited]

Reimplemented in RTCPInstance.

virtual Boolean Medium::isRTSPClient (  )  const [virtual, inherited]

Reimplemented in RTSPClient.

virtual Boolean Medium::isMediaSession (  )  const [virtual, inherited]

Reimplemented in MediaSession.

virtual Boolean Medium::isServerMediaSession (  )  const [virtual, inherited]

Reimplemented in ServerMediaSession.

virtual Boolean Medium::isDarwinInjector (  )  const [virtual, inherited]

Reimplemented in DarwinInjector.

TaskToken& Medium::nextTask (  )  [inline, protected, inherited]

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

00078                         {
00079         return fNextTask;
00080   }


Friends And Related Function Documentation

friend class MediaLookupTable [friend, inherited]

Definition at line 74 of file Media.hh.


Field Documentation

Port RTSPServer::fRTSPServerPort [protected, inherited]

Definition at line 353 of file RTSPServer.hh.

Referenced by HandlerServerForREGISTERCommand::serverPortNum().


The documentation for this class was generated from the following file:
Generated on Sun Jul 13 05:12:22 2014 for live by  doxygen 1.5.2