| 
    live
    
   | 
 
#include <RTSPServer.hh>


Public Types | |
| typedef void() | responseHandlerForREGISTER(RTSPServer *rtspServer, unsigned requestId, int resultCode, char *resultString) | 
| typedef void() | responseHandlerForDEREGISTER(RTSPServer *rtspServer, unsigned requestId, int resultCode, char *resultString) | 
Public Member Functions | |
| 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) | 
| unsigned | deregisterStream (ServerMediaSession *serverMediaSession, char const *remoteClientNameOrAddress, portNumBits remoteClientPortNum, responseHandlerForDEREGISTER *responseHandler, char const *username=NULL, char const *password=NULL, char const *proxyURLSuffix=NULL) | 
| char * | rtspURL (ServerMediaSession const *serverMediaSession, int clientSocket=-1, Boolean useIPv6=False) const | 
| char * | ipv4rtspURL (ServerMediaSession const *serverMediaSession, int clientSocket=-1) | 
| char * | ipv6rtspURL (ServerMediaSession const *serverMediaSession, int clientSocket=-1) | 
| char * | rtspURLPrefix (int clientSocket=-1, Boolean useIPv6=False) const | 
| char * | ipv4rtspURLPrefix (int clientSocket=-1) | 
| char * | ipv6rtspURLPrefix (int clientSocket=-1) | 
| UserAuthenticationDatabase * | setAuthenticationDatabase (UserAuthenticationDatabase *newDB) | 
| void | disableStreamingRTPOverTCP () | 
| Boolean | setUpTunnelingOverHTTP (Port httpPort) | 
| portNumBits | httpServerPortNum () const | 
| void | setTLSState (char const *certFileName, char const *privKeyFileName, Boolean weServeSRTP=True, Boolean weEncryptSRTP=True) | 
| virtual Boolean | isRTSPServer () const | 
| virtual void | addServerMediaSession (ServerMediaSession *serverMediaSession) | 
| virtual void | lookupServerMediaSession (char const *streamName, lookupServerMediaSessionCompletionFunc *completionFunc, void *completionClientData, Boolean isFirstLookupInSession=True) | 
| void | lookupServerMediaSession (char const *streamName, void(GenericMediaServer::*memberFunc)(ServerMediaSession *)) | 
| void | removeServerMediaSession (ServerMediaSession *serverMediaSession) | 
| virtual void | removeServerMediaSession (char const *streamName) | 
| void | closeAllClientSessionsForServerMediaSession (ServerMediaSession *serverMediaSession) | 
| virtual void | closeAllClientSessionsForServerMediaSession (char const *streamName) | 
| void | deleteServerMediaSession (ServerMediaSession *serverMediaSession) | 
| virtual void | deleteServerMediaSession (char const *streamName) | 
| unsigned | numClientSessions () const | 
| UsageEnvironment & | envir () 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 RTSPServerWithREGISTERProxying * | createNew (UsageEnvironment &env, Port ourPort=554, UserAuthenticationDatabase *authDatabase=NULL, UserAuthenticationDatabase *authDatabaseForREGISTER=NULL, unsigned reclamationSeconds=65, Boolean streamRTPOverTCP=False, int verbosityLevelForProxying=0, char const *backEndUsername=NULL, char const *backEndPassword=NULL) | 
| static RTSPServer * | createNew (UsageEnvironment &env, Port ourPort=554, UserAuthenticationDatabase *authDatabase=NULL, unsigned reclamationSeconds=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 | |
| RTSPServerWithREGISTERProxying (UsageEnvironment &env, int ourSocketIPv4, int ourSocketIPv6, Port ourPort, UserAuthenticationDatabase *authDatabase, UserAuthenticationDatabase *authDatabaseForREGISTER, unsigned reclamationSeconds, Boolean streamRTPOverTCP, int verbosityLevelForProxying, char const *backEndUsername, char const *backEndPassword) | |
| virtual | ~RTSPServerWithREGISTERProxying () | 
| virtual char const * | allowedCommandNames () | 
| virtual Boolean | weImplementREGISTER (char const *cmd, char const *proxyURLSuffix, char *&responseStr) | 
| virtual void | implementCmd_REGISTER (char const *cmd, 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_storage const &clientAddr, char const *urlSuffix) | 
| virtual Boolean | specialClientUserAccessCheck (int clientSocket, struct sockaddr_storage const &clientAddr, char const *urlSuffix, char const *username) | 
| virtual void | specialHandlingOfAuthenticationFailure (int clientSocket, struct sockaddr_storage const &clientAddr, char const *urlSuffix) | 
| virtual ClientConnection * | createNewClientConnection (int clientSocket, struct sockaddr_storage const &clientAddr) | 
| virtual ClientSession * | createNewClientSession (u_int32_t sessionId) | 
| void | cleanup () | 
| void | incomingConnectionHandlerIPv4 () | 
| void | incomingConnectionHandlerIPv6 () | 
| void | incomingConnectionHandlerOnSocket (int serverSocket) | 
| void | setTLSFileNames (char const *certFileName, char const *privKeyFileName) | 
| ClientSession * | createNewClientSessionWithId () | 
| ClientSession * | lookupClientSession (u_int32_t sessionId) | 
| ClientSession * | lookupClientSession (char const *sessionIdStr) | 
| ServerMediaSession * | getServerMediaSession (char const *streamName) | 
| TaskToken & | nextTask () | 
Static Protected Member Functions | |
| static int | setUpOurSocket (UsageEnvironment &env, Port &ourPort, int domain) | 
| static void | incomingConnectionHandlerIPv4 (void *, int) | 
| static void | incomingConnectionHandlerIPv6 (void *, int) | 
Protected Attributes | |
| int | fServerSocketIPv4 | 
| int | fServerSocketIPv6 | 
| Port | fServerPort | 
| unsigned | fReclamationSeconds | 
| HashTable * | fServerMediaSessions | 
| HashTable * | fClientConnections | 
| HashTable * | fClientSessions | 
Private Member Functions | |
| void | incomingConnectionHandlerHTTPIPv4 () | 
| void | incomingConnectionHandlerHTTPIPv6 () | 
| void | noteTCPStreamingOnSocket (int socketNum, RTSPClientSession *clientSession, unsigned trackNum) | 
| void | unnoteTCPStreamingOnSocket (int socketNum, RTSPClientSession *clientSession, unsigned trackNum) | 
| void | stopTCPStreamingOnSocket (int socketNum) | 
Static Private Member Functions | |
| static void | incomingConnectionHandlerHTTPIPv4 (void *, int) | 
| static void | incomingConnectionHandlerHTTPIPv6 (void *, int) | 
Definition at line 350 of file RTSPServer.hh.
      
  | 
  inherited | 
Definition at line 64 of file RTSPServer.hh.
      
  | 
  inherited | 
Definition at line 46 of file RTSPServer.hh.
      
  | 
  protected | 
      
  | 
  protectedvirtual | 
      
  | 
  virtualinherited | 
Reimplemented from GenericMediaServer.
      
  | 
  protectedvirtual | 
Reimplemented from RTSPServer.
      
  | 
  protectedinherited | 
      
  | 
  staticinherited | 
      
  | 
  staticinherited | 
      
  | 
  virtualinherited | 
      
  | 
  inherited | 
      
  | 
  staticinherited | 
      
  | 
  static | 
      
  | 
  protectedvirtualinherited | 
Implements GenericMediaServer.
      
  | 
  protectedvirtualinherited | 
Implements GenericMediaServer.
      
  | 
  protectedinherited | 
      
  | 
  virtualinherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inlineinherited | 
Definition at line 100 of file RTSPServer.hh.
References RTSPServer::fAllowStreamingRTPOverTCP, and False.
      
  | 
  inlineinherited | 
Definition at line 59 of file Media.hh.
References Medium::fEnviron.
Referenced by MediaSubsession::env(), GenericMediaServer::ClientConnection::envir(), GenericMediaServer::ClientSession::envir(), and RTPInterface::envir().
      
  | 
  protectedvirtual | 
Reimplemented from RTSPServer.
      
  | 
  protectedinherited | 
      
  | 
  inherited | 
      
  | 
  protectedvirtual | 
Reimplemented from RTSPServer.
      
  | 
  privateinherited | 
      
  | 
  staticprivateinherited | 
      
  | 
  privateinherited | 
      
  | 
  staticprivateinherited | 
      
  | 
  protectedinherited | 
      
  | 
  staticprotectedinherited | 
      
  | 
  protectedinherited | 
      
  | 
  staticprotectedinherited | 
      
  | 
  protectedinherited | 
      
  | 
  inlineinherited | 
Definition at line 81 of file RTSPServer.hh.
References False, and RTSPServer::rtspURL().
      
  | 
  inlineinherited | 
Definition at line 93 of file RTSPServer.hh.
References False, and RTSPServer::rtspURLPrefix().
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  virtualinherited | 
Reimplemented in MediaSession.
      
  | 
  virtualinherited | 
Reimplemented in RTCPInstance.
      
  | 
  virtualinherited | 
Reimplemented in RTSPClient.
      
  | 
  virtualinherited | 
Reimplemented in ServerMediaSession.
      
  | 
  virtualinherited | 
Reimplemented in MediaSource.
      
  | 
  staticinherited | 
      
  | 
  staticinherited | 
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
      
  | 
  virtualinherited | 
      
  | 
  inherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineprotectedinherited | 
Definition at line 77 of file Media.hh.
References Medium::fNextTask.
      
  | 
  privateinherited | 
      
  | 
  inlineinherited | 
Definition at line 80 of file GenericMediaServer.hh.
References GenericMediaServer::fClientSessions, and HashTable::numEntries().
      
  | 
  inherited | 
      
  | 
  virtualinherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
Referenced by RTSPServer::ipv4rtspURL(), and RTSPServer::ipv6rtspURL().
Referenced by RTSPServer::ipv4rtspURLPrefix(), and RTSPServer::ipv6rtspURLPrefix().
      
  | 
  inherited | 
      
  | 
  protectedinherited | 
      
  | 
  inherited | 
      
  | 
  staticprotectedinherited | 
      
  | 
  protectedvirtualinherited | 
      
  | 
  protectedvirtualinherited | 
      
  | 
  protectedvirtualinherited | 
      
  | 
  privateinherited | 
      
  | 
  privateinherited | 
      
  | 
  protectedvirtual | 
Reimplemented from RTSPServer.
      
  | 
  private | 
Definition at line 383 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 341 of file RTSPServer.hh.
Referenced by RTSPServer::disableStreamingRTPOverTCP().
      
  | 
  privateinherited | 
Definition at line 340 of file RTSPServer.hh.
      
  | 
  private | 
Definition at line 384 of file RTSPServer.hh.
      
  | 
  private | 
Definition at line 386 of file RTSPServer.hh.
      
  | 
  private | 
Definition at line 385 of file RTSPServer.hh.
      
  | 
  protectedinherited | 
Definition at line 188 of file GenericMediaServer.hh.
      
  | 
  privateinherited | 
Definition at line 334 of file RTSPServer.hh.
      
  | 
  protectedinherited | 
Definition at line 189 of file GenericMediaServer.hh.
Referenced by GenericMediaServer::numClientSessions().
      
  | 
  privateinherited | 
Definition at line 82 of file Media.hh.
Referenced by Medium::envir().
      
  | 
  privateinherited | 
Definition at line 333 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 332 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 332 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 83 of file Media.hh.
Referenced by Medium::name().
      
  | 
  privateinherited | 
Definition at line 84 of file Media.hh.
Referenced by Medium::nextTask().
      
  | 
  privateinherited | 
Definition at line 342 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 338 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 192 of file GenericMediaServer.hh.
      
  | 
  protectedinherited | 
Definition at line 186 of file GenericMediaServer.hh.
      
  | 
  private | 
Definition at line 382 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 339 of file RTSPServer.hh.
      
  | 
  protectedinherited | 
Definition at line 187 of file GenericMediaServer.hh.
      
  | 
  protectedinherited | 
Definition at line 185 of file GenericMediaServer.hh.
Referenced by HandlerServerForREGISTERCommand::serverPortNum().
      
  | 
  protectedinherited | 
Definition at line 184 of file GenericMediaServer.hh.
      
  | 
  protectedinherited | 
Definition at line 184 of file GenericMediaServer.hh.
      
  | 
  private | 
Definition at line 380 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 336 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 194 of file GenericMediaServer.hh.
      
  | 
  privateinherited | 
Definition at line 195 of file GenericMediaServer.hh.
      
  | 
  private | 
Definition at line 381 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 344 of file RTSPServer.hh.
      
  | 
  privateinherited | 
Definition at line 343 of file RTSPServer.hh.