|
live
|
#include <RTSPServer.hh>


Data Structures | |
| class | RTSPClientConnection |
| class | RTSPClientSession |
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 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 | |
| RTSPServer (UsageEnvironment &env, int ourSocketIPv4, int ourSocketIPv6, Port ourPort, UserAuthenticationDatabase *authDatabase, unsigned reclamationSeconds) | |
| virtual | ~RTSPServer () |
| 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) |
Friends | |
| class | RTSPClientConnection |
| class | RTSPClientSession |
| class | RegisterRequestRecord |
| class | DeregisterRequestRecord |
Definition at line 31 of file RTSPServer.hh.
| typedef void() RTSPServer::responseHandlerForDEREGISTER(RTSPServer *rtspServer, unsigned requestId, int resultCode, char *resultString) |
Definition at line 64 of file RTSPServer.hh.
| typedef void() RTSPServer::responseHandlerForREGISTER(RTSPServer *rtspServer, unsigned requestId, int resultCode, char *resultString) |
Definition at line 46 of file RTSPServer.hh.
|
protected |
|
protectedvirtual |
|
virtual |
Reimplemented from GenericMediaServer.
|
protectedvirtual |
Reimplemented in HandlerServerForREGISTERCommand, and RTSPServerWithREGISTERProxying.
|
protectedinherited |
|
staticinherited |
|
staticinherited |
|
virtualinherited |
|
inherited |
|
static |
|
protectedvirtual |
Implements GenericMediaServer.
|
protectedvirtual |
Implements GenericMediaServer.
|
protectedinherited |
|
virtualinherited |
|
inherited |
| unsigned RTSPServer::deregisterStream | ( | ServerMediaSession * | serverMediaSession, |
| char const * | remoteClientNameOrAddress, | ||
| portNumBits | remoteClientPortNum, | ||
| responseHandlerForDEREGISTER * | responseHandler, | ||
| char const * | username = NULL, |
||
| char const * | password = NULL, |
||
| char const * | proxyURLSuffix = NULL |
||
| ) |
|
inline |
Definition at line 100 of file RTSPServer.hh.
References 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 in RTSPServerWithREGISTERProxying.
|
protectedinherited |
| portNumBits RTSPServer::httpServerPortNum | ( | ) | const |
|
protectedvirtual |
Reimplemented in HandlerServerForREGISTERCommand, and RTSPServerWithREGISTERProxying.
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
protectedinherited |
|
staticprotectedinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
protectedinherited |
|
inline |
Definition at line 81 of file RTSPServer.hh.
|
inline |
Definition at line 93 of file RTSPServer.hh.
References False, and rtspURLPrefix().
|
inline |
Definition at line 84 of file RTSPServer.hh.
|
inline |
|
virtualinherited |
Reimplemented in MediaSession.
|
virtualinherited |
Reimplemented in RTCPInstance.
|
virtualinherited |
Reimplemented in RTSPClient.
|
virtualinherited |
Reimplemented in ServerMediaSession.
|
virtualinherited |
Reimplemented in MediaSource.
|
staticinherited |
|
static |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
|
inherited |
|
inlineinherited |
|
inlineprotectedinherited |
Definition at line 77 of file Media.hh.
References Medium::fNextTask.
|
private |
|
inlineinherited |
Definition at line 80 of file GenericMediaServer.hh.
References GenericMediaServer::fClientSessions, and HashTable::numEntries().
| 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 |
||
| ) |
|
virtualinherited |
|
inherited |
| char * RTSPServer::rtspURL | ( | ServerMediaSession const * | serverMediaSession, |
| int | clientSocket = -1, |
||
| Boolean | useIPv6 = False |
||
| ) | const |
Referenced by ipv4rtspURL(), and ipv6rtspURL().
Referenced by ipv4rtspURLPrefix(), and ipv6rtspURLPrefix().
| UserAuthenticationDatabase * RTSPServer::setAuthenticationDatabase | ( | UserAuthenticationDatabase * | newDB | ) |
|
protectedinherited |
| void RTSPServer::setTLSState | ( | char const * | certFileName, |
| char const * | privKeyFileName, | ||
| Boolean | weServeSRTP = True, |
||
| Boolean | weEncryptSRTP = True |
||
| ) |
|
staticprotectedinherited |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
private |
|
private |
|
protectedvirtual |
Reimplemented in HandlerServerForREGISTERCommand, and RTSPServerWithREGISTERProxying.
|
friend |
Definition at line 331 of file RTSPServer.hh.
|
friend |
Definition at line 330 of file RTSPServer.hh.
|
friend |
Definition at line 328 of file RTSPServer.hh.
|
friend |
Definition at line 329 of file RTSPServer.hh.
|
private |
Definition at line 341 of file RTSPServer.hh.
Referenced by disableStreamingRTPOverTCP().
|
private |
Definition at line 340 of file RTSPServer.hh.
|
protectedinherited |
Definition at line 188 of file GenericMediaServer.hh.
|
private |
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().
|
private |
Definition at line 333 of file RTSPServer.hh.
|
private |
Definition at line 332 of file RTSPServer.hh.
|
private |
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().
|
private |
Definition at line 342 of file RTSPServer.hh.
|
private |
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 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 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 344 of file RTSPServer.hh.
|
private |
Definition at line 343 of file RTSPServer.hh.