live
Data Structures | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
RTSPServer::RTSPClientConnection Class Reference

#include <RTSPServer.hh>

Inheritance diagram for RTSPServer::RTSPClientConnection:
Inheritance graph
[legend]
Collaboration diagram for RTSPServer::RTSPClientConnection:
Collaboration graph
[legend]

Data Structures

class  ParamsForREGISTER
 

Protected Member Functions

virtual void handleRequestBytes (int newBytesRead)
 
 RTSPClientConnection (RTSPServer &ourServer, int clientSocket, struct sockaddr_storage const &clientAddr, Boolean useTLS=False)
 
virtual ~RTSPClientConnection ()
 
virtual void handleCmd_OPTIONS ()
 
virtual void handleCmd_GET_PARAMETER (char const *fullRequestStr)
 
virtual void handleCmd_SET_PARAMETER (char const *fullRequestStr)
 
virtual void handleCmd_DESCRIBE (char const *urlPreSuffix, char const *urlSuffix, char const *fullRequestStr)
 
virtual void handleCmd_DESCRIBE_afterLookup (ServerMediaSession *session)
 
virtual void handleCmd_REGISTER (char const *cmd, char const *url, char const *urlSuffix, char const *fullRequestStr, Boolean reuseConnection, Boolean deliverViaTCP, char const *proxyURLSuffix)
 
virtual void handleCmd_bad ()
 
virtual void handleCmd_notSupported ()
 
virtual void handleCmd_redirect (char const *urlSuffix)
 
virtual void handleCmd_notFound ()
 
virtual void handleCmd_sessionNotFound ()
 
virtual void handleCmd_unsupportedTransport ()
 
virtual Boolean parseHTTPRequestString (char *resultCmdName, unsigned resultCmdNameMaxSize, char *urlSuffix, unsigned urlSuffixMaxSize, char *sessionCookie, unsigned sessionCookieMaxSize, char *acceptStr, unsigned acceptStrMaxSize)
 
virtual void handleHTTPCmd_notSupported ()
 
virtual void handleHTTPCmd_notFound ()
 
virtual void handleHTTPCmd_OPTIONS ()
 
virtual void handleHTTPCmd_TunnelingGET (char const *sessionCookie)
 
virtual Boolean handleHTTPCmd_TunnelingPOST (char const *sessionCookie, unsigned char const *extraData, unsigned extraDataSize)
 
virtual void handleHTTPCmd_StreamingGET (char const *urlSuffix, char const *fullRequestStr)
 
void resetRequestBuffer ()
 
void closeSocketsRTSP ()
 
void handleAlternativeRequestByte1 (u_int8_t requestByte)
 
Boolean authenticationOK (char const *cmdName, char const *urlSuffix, char const *fullRequestStr)
 
void changeClientInputSocket (int newSocketNum, ServerTLSState const *newTLSState, unsigned char const *extraData, unsigned extraDataSize)
 
virtual void continueHandlingREGISTER1 (ParamsForREGISTER *params)
 
void setRTSPResponse (char const *responseStr)
 
void setRTSPResponse (char const *responseStr, u_int32_t sessionId)
 
void setRTSPResponse (char const *responseStr, char const *contentStr)
 
void setRTSPResponse (char const *responseStr, u_int32_t sessionId, char const *contentStr)
 
UsageEnvironmentenvir ()
 
void closeSockets ()
 
void incomingRequestHandler ()
 

Static Protected Member Functions

static void DESCRIBELookupCompletionFunction (void *clientData, ServerMediaSession *sessionLookedUp)
 
static void handleAlternativeRequestByte (void *, u_int8_t requestByte)
 
static void continueHandlingREGISTER (ParamsForREGISTER *params)
 
static void incomingRequestHandler (void *, int)
 

Protected Attributes

RTSPServerfOurRTSPServer
 
int & fClientInputSocket
 
int fClientOutputSocket
 
ServerTLSState fPOSTSocketTLS
 
int fAddressFamily
 
Boolean fIsActive
 
unsigned char * fLastCRLF
 
unsigned fRecursionCount
 
char const * fCurrentCSeq
 
Authenticator fCurrentAuthenticator
 
char * fOurSessionCookie
 
unsigned fBase64RemainderCount
 
unsigned fScheduledDelayedTask
 
GenericMediaServerfOurServer
 
int fOurSocket
 
struct sockaddr_storage fClientAddr
 
unsigned char fRequestBuffer [REQUEST_BUFFER_SIZE]
 
unsigned char fResponseBuffer [RESPONSE_BUFFER_SIZE]
 
unsigned fRequestBytesAlreadySeen
 
unsigned fRequestBufferBytesLeft
 
ServerTLSState fTLS
 
ServerTLSStatefInputTLS
 
ServerTLSStatefOutputTLS
 

Friends

class RTSPServer
 
class RTSPClientSession
 

Detailed Description

Definition at line 157 of file RTSPServer.hh.

Constructor & Destructor Documentation

◆ RTSPClientConnection()

RTSPServer::RTSPClientConnection::RTSPClientConnection ( RTSPServer ourServer,
int  clientSocket,
struct sockaddr_storage const &  clientAddr,
Boolean  useTLS = False 
)
protected

◆ ~RTSPClientConnection()

virtual RTSPServer::RTSPClientConnection::~RTSPClientConnection ( )
protectedvirtual

Member Function Documentation

◆ authenticationOK()

Boolean RTSPServer::RTSPClientConnection::authenticationOK ( char const *  cmdName,
char const *  urlSuffix,
char const *  fullRequestStr 
)
protected

◆ changeClientInputSocket()

void RTSPServer::RTSPClientConnection::changeClientInputSocket ( int  newSocketNum,
ServerTLSState const *  newTLSState,
unsigned char const *  extraData,
unsigned  extraDataSize 
)
protected

◆ closeSockets()

void GenericMediaServer::ClientConnection::closeSockets ( )
protectedinherited

◆ closeSocketsRTSP()

void RTSPServer::RTSPClientConnection::closeSocketsRTSP ( )
protected

◆ continueHandlingREGISTER()

static void RTSPServer::RTSPClientConnection::continueHandlingREGISTER ( ParamsForREGISTER params)
staticprotected

◆ continueHandlingREGISTER1()

virtual void RTSPServer::RTSPClientConnection::continueHandlingREGISTER1 ( ParamsForREGISTER params)
protectedvirtual

◆ DESCRIBELookupCompletionFunction()

static void RTSPServer::RTSPClientConnection::DESCRIBELookupCompletionFunction ( void *  clientData,
ServerMediaSession sessionLookedUp 
)
staticprotected

◆ envir()

UsageEnvironment & GenericMediaServer::ClientConnection::envir ( )
inlineprotectedinherited

Definition at line 110 of file GenericMediaServer.hh.

110{ return fOurServer.envir(); }
UsageEnvironment & envir() const
Definition: Media.hh:59

References Medium::envir(), and GenericMediaServer::ClientConnection::fOurServer.

◆ handleAlternativeRequestByte()

static void RTSPServer::RTSPClientConnection::handleAlternativeRequestByte ( void *  ,
u_int8_t  requestByte 
)
staticprotected

◆ handleAlternativeRequestByte1()

void RTSPServer::RTSPClientConnection::handleAlternativeRequestByte1 ( u_int8_t  requestByte)
protected

◆ handleCmd_bad()

virtual void RTSPServer::RTSPClientConnection::handleCmd_bad ( )
protectedvirtual

◆ handleCmd_DESCRIBE()

virtual void RTSPServer::RTSPClientConnection::handleCmd_DESCRIBE ( char const *  urlPreSuffix,
char const *  urlSuffix,
char const *  fullRequestStr 
)
protectedvirtual

◆ handleCmd_DESCRIBE_afterLookup()

virtual void RTSPServer::RTSPClientConnection::handleCmd_DESCRIBE_afterLookup ( ServerMediaSession session)
protectedvirtual

◆ handleCmd_GET_PARAMETER()

virtual void RTSPServer::RTSPClientConnection::handleCmd_GET_PARAMETER ( char const *  fullRequestStr)
protectedvirtual

◆ handleCmd_notFound()

virtual void RTSPServer::RTSPClientConnection::handleCmd_notFound ( )
protectedvirtual

◆ handleCmd_notSupported()

virtual void RTSPServer::RTSPClientConnection::handleCmd_notSupported ( )
protectedvirtual

◆ handleCmd_OPTIONS()

virtual void RTSPServer::RTSPClientConnection::handleCmd_OPTIONS ( )
protectedvirtual

◆ handleCmd_redirect()

virtual void RTSPServer::RTSPClientConnection::handleCmd_redirect ( char const *  urlSuffix)
protectedvirtual

◆ handleCmd_REGISTER()

virtual void RTSPServer::RTSPClientConnection::handleCmd_REGISTER ( char const *  cmd,
char const *  url,
char const *  urlSuffix,
char const *  fullRequestStr,
Boolean  reuseConnection,
Boolean  deliverViaTCP,
char const *  proxyURLSuffix 
)
protectedvirtual

◆ handleCmd_sessionNotFound()

virtual void RTSPServer::RTSPClientConnection::handleCmd_sessionNotFound ( )
protectedvirtual

◆ handleCmd_SET_PARAMETER()

virtual void RTSPServer::RTSPClientConnection::handleCmd_SET_PARAMETER ( char const *  fullRequestStr)
protectedvirtual

◆ handleCmd_unsupportedTransport()

virtual void RTSPServer::RTSPClientConnection::handleCmd_unsupportedTransport ( )
protectedvirtual

◆ handleHTTPCmd_notFound()

virtual void RTSPServer::RTSPClientConnection::handleHTTPCmd_notFound ( )
protectedvirtual

◆ handleHTTPCmd_notSupported()

virtual void RTSPServer::RTSPClientConnection::handleHTTPCmd_notSupported ( )
protectedvirtual

◆ handleHTTPCmd_OPTIONS()

virtual void RTSPServer::RTSPClientConnection::handleHTTPCmd_OPTIONS ( )
protectedvirtual

◆ handleHTTPCmd_StreamingGET()

virtual void RTSPServer::RTSPClientConnection::handleHTTPCmd_StreamingGET ( char const *  urlSuffix,
char const *  fullRequestStr 
)
protectedvirtual

◆ handleHTTPCmd_TunnelingGET()

virtual void RTSPServer::RTSPClientConnection::handleHTTPCmd_TunnelingGET ( char const *  sessionCookie)
protectedvirtual

◆ handleHTTPCmd_TunnelingPOST()

virtual Boolean RTSPServer::RTSPClientConnection::handleHTTPCmd_TunnelingPOST ( char const *  sessionCookie,
unsigned char const *  extraData,
unsigned  extraDataSize 
)
protectedvirtual

◆ handleRequestBytes()

virtual void RTSPServer::RTSPClientConnection::handleRequestBytes ( int  newBytesRead)
protectedvirtual

◆ incomingRequestHandler() [1/2]

void GenericMediaServer::ClientConnection::incomingRequestHandler ( )
protectedinherited

◆ incomingRequestHandler() [2/2]

static void GenericMediaServer::ClientConnection::incomingRequestHandler ( void *  ,
int   
)
staticprotectedinherited

◆ parseHTTPRequestString()

virtual Boolean RTSPServer::RTSPClientConnection::parseHTTPRequestString ( char *  resultCmdName,
unsigned  resultCmdNameMaxSize,
char *  urlSuffix,
unsigned  urlSuffixMaxSize,
char *  sessionCookie,
unsigned  sessionCookieMaxSize,
char *  acceptStr,
unsigned  acceptStrMaxSize 
)
protectedvirtual

◆ resetRequestBuffer()

void RTSPServer::RTSPClientConnection::resetRequestBuffer ( )
protected

◆ setRTSPResponse() [1/4]

void RTSPServer::RTSPClientConnection::setRTSPResponse ( char const *  responseStr)
protected

◆ setRTSPResponse() [2/4]

void RTSPServer::RTSPClientConnection::setRTSPResponse ( char const *  responseStr,
char const *  contentStr 
)
protected

◆ setRTSPResponse() [3/4]

void RTSPServer::RTSPClientConnection::setRTSPResponse ( char const *  responseStr,
u_int32_t  sessionId 
)
protected

◆ setRTSPResponse() [4/4]

void RTSPServer::RTSPClientConnection::setRTSPResponse ( char const *  responseStr,
u_int32_t  sessionId,
char const *  contentStr 
)
protected

Friends And Related Function Documentation

◆ RTSPClientSession

friend class RTSPClientSession
friend

Definition at line 185 of file RTSPServer.hh.

◆ RTSPServer

friend class RTSPServer
friend

Definition at line 184 of file RTSPServer.hh.

Field Documentation

◆ fAddressFamily

int RTSPServer::RTSPClientConnection::fAddressFamily
protected

Definition at line 239 of file RTSPServer.hh.

◆ fBase64RemainderCount

unsigned RTSPServer::RTSPClientConnection::fBase64RemainderCount
protected

Definition at line 246 of file RTSPServer.hh.

◆ fClientAddr

struct sockaddr_storage GenericMediaServer::ClientConnection::fClientAddr
protectedinherited

Definition at line 124 of file GenericMediaServer.hh.

◆ fClientInputSocket

int& RTSPServer::RTSPClientConnection::fClientInputSocket
protected

Definition at line 236 of file RTSPServer.hh.

◆ fClientOutputSocket

int RTSPServer::RTSPClientConnection::fClientOutputSocket
protected

Definition at line 237 of file RTSPServer.hh.

◆ fCurrentAuthenticator

Authenticator RTSPServer::RTSPClientConnection::fCurrentAuthenticator
protected

Definition at line 244 of file RTSPServer.hh.

◆ fCurrentCSeq

char const* RTSPServer::RTSPClientConnection::fCurrentCSeq
protected

Definition at line 243 of file RTSPServer.hh.

◆ fInputTLS

ServerTLSState* GenericMediaServer::ClientConnection::fInputTLS
protectedinherited

Definition at line 131 of file GenericMediaServer.hh.

◆ fIsActive

Boolean RTSPServer::RTSPClientConnection::fIsActive
protected

Definition at line 240 of file RTSPServer.hh.

◆ fLastCRLF

unsigned char* RTSPServer::RTSPClientConnection::fLastCRLF
protected

Definition at line 241 of file RTSPServer.hh.

◆ fOurRTSPServer

RTSPServer& RTSPServer::RTSPClientConnection::fOurRTSPServer
protected

Definition at line 235 of file RTSPServer.hh.

◆ fOurServer

GenericMediaServer& GenericMediaServer::ClientConnection::fOurServer
protectedinherited

Definition at line 122 of file GenericMediaServer.hh.

Referenced by GenericMediaServer::ClientConnection::envir().

◆ fOurSessionCookie

char* RTSPServer::RTSPClientConnection::fOurSessionCookie
protected

Definition at line 245 of file RTSPServer.hh.

◆ fOurSocket

int GenericMediaServer::ClientConnection::fOurSocket
protectedinherited

Definition at line 123 of file GenericMediaServer.hh.

◆ fOutputTLS

ServerTLSState* GenericMediaServer::ClientConnection::fOutputTLS
protectedinherited

Definition at line 132 of file GenericMediaServer.hh.

◆ fPOSTSocketTLS

ServerTLSState RTSPServer::RTSPClientConnection::fPOSTSocketTLS
protected

Definition at line 238 of file RTSPServer.hh.

◆ fRecursionCount

unsigned RTSPServer::RTSPClientConnection::fRecursionCount
protected

Definition at line 242 of file RTSPServer.hh.

◆ fRequestBuffer

unsigned char GenericMediaServer::ClientConnection::fRequestBuffer[REQUEST_BUFFER_SIZE]
protectedinherited

Definition at line 125 of file GenericMediaServer.hh.

◆ fRequestBufferBytesLeft

unsigned GenericMediaServer::ClientConnection::fRequestBufferBytesLeft
protectedinherited

Definition at line 127 of file GenericMediaServer.hh.

◆ fRequestBytesAlreadySeen

unsigned GenericMediaServer::ClientConnection::fRequestBytesAlreadySeen
protectedinherited

Definition at line 127 of file GenericMediaServer.hh.

◆ fResponseBuffer

unsigned char GenericMediaServer::ClientConnection::fResponseBuffer[RESPONSE_BUFFER_SIZE]
protectedinherited

Definition at line 126 of file GenericMediaServer.hh.

◆ fScheduledDelayedTask

unsigned RTSPServer::RTSPClientConnection::fScheduledDelayedTask
protected

Definition at line 247 of file RTSPServer.hh.

◆ fTLS

ServerTLSState GenericMediaServer::ClientConnection::fTLS
protectedinherited

Definition at line 130 of file GenericMediaServer.hh.


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