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)
 
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_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, 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
 
int fAddressFamily
 
Boolean fIsActive
 
unsigned char * fLastCRLF
 
unsigned fRecursionCount
 
char const * fCurrentCSeq
 
Authenticator fCurrentAuthenticator
 
char * fOurSessionCookie
 
unsigned fBase64RemainderCount
 
GenericMediaServerfOurServer
 
int fOurSocket
 
struct sockaddr_storage fClientAddr
 
unsigned char fRequestBuffer [REQUEST_BUFFER_SIZE]
 
unsigned char fResponseBuffer [RESPONSE_BUFFER_SIZE]
 
unsigned fRequestBytesAlreadySeen
 
unsigned fRequestBufferBytesLeft
 

Friends

class RTSPServer
 
class RTSPClientSession
 

Detailed Description

Definition at line 147 of file RTSPServer.hh.

Constructor & Destructor Documentation

◆ RTSPClientConnection()

RTSPServer::RTSPClientConnection::RTSPClientConnection ( RTSPServer ourServer,
int  clientSocket,
struct sockaddr_storage const &  clientAddr 
)
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,
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 106 of file GenericMediaServer.hh.

106 { 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_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]

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

◆ incomingRequestHandler() [2/2]

void GenericMediaServer::ClientConnection::incomingRequestHandler ( )
protectedinherited

◆ 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,
u_int32_t  sessionId 
)
protected

◆ setRTSPResponse() [3/4]

void RTSPServer::RTSPClientConnection::setRTSPResponse ( char const *  responseStr,
char const *  contentStr 
)
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 173 of file RTSPServer.hh.

◆ RTSPServer

friend class RTSPServer
friend

Definition at line 172 of file RTSPServer.hh.

Field Documentation

◆ fAddressFamily

int RTSPServer::RTSPClientConnection::fAddressFamily
protected

Definition at line 224 of file RTSPServer.hh.

◆ fBase64RemainderCount

unsigned RTSPServer::RTSPClientConnection::fBase64RemainderCount
protected

Definition at line 231 of file RTSPServer.hh.

◆ fClientAddr

struct sockaddr_storage GenericMediaServer::ClientConnection::fClientAddr
protectedinherited

Definition at line 120 of file GenericMediaServer.hh.

◆ fClientInputSocket

int& RTSPServer::RTSPClientConnection::fClientInputSocket
protected

Definition at line 222 of file RTSPServer.hh.

◆ fClientOutputSocket

int RTSPServer::RTSPClientConnection::fClientOutputSocket
protected

Definition at line 223 of file RTSPServer.hh.

◆ fCurrentAuthenticator

Authenticator RTSPServer::RTSPClientConnection::fCurrentAuthenticator
protected

Definition at line 229 of file RTSPServer.hh.

◆ fCurrentCSeq

char const* RTSPServer::RTSPClientConnection::fCurrentCSeq
protected

Definition at line 228 of file RTSPServer.hh.

◆ fIsActive

Boolean RTSPServer::RTSPClientConnection::fIsActive
protected

Definition at line 225 of file RTSPServer.hh.

◆ fLastCRLF

unsigned char* RTSPServer::RTSPClientConnection::fLastCRLF
protected

Definition at line 226 of file RTSPServer.hh.

◆ fOurRTSPServer

RTSPServer& RTSPServer::RTSPClientConnection::fOurRTSPServer
protected

Definition at line 221 of file RTSPServer.hh.

◆ fOurServer

GenericMediaServer& GenericMediaServer::ClientConnection::fOurServer
protectedinherited

Definition at line 118 of file GenericMediaServer.hh.

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

◆ fOurSessionCookie

char* RTSPServer::RTSPClientConnection::fOurSessionCookie
protected

Definition at line 230 of file RTSPServer.hh.

◆ fOurSocket

int GenericMediaServer::ClientConnection::fOurSocket
protectedinherited

Definition at line 119 of file GenericMediaServer.hh.

◆ fRecursionCount

unsigned RTSPServer::RTSPClientConnection::fRecursionCount
protected

Definition at line 227 of file RTSPServer.hh.

◆ fRequestBuffer

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

Definition at line 121 of file GenericMediaServer.hh.

◆ fRequestBufferBytesLeft

unsigned GenericMediaServer::ClientConnection::fRequestBufferBytesLeft
protectedinherited

Definition at line 123 of file GenericMediaServer.hh.

◆ fRequestBytesAlreadySeen

unsigned GenericMediaServer::ClientConnection::fRequestBytesAlreadySeen
protectedinherited

Definition at line 123 of file GenericMediaServer.hh.

◆ fResponseBuffer

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

Definition at line 122 of file GenericMediaServer.hh.


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