live
Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
GenericMediaServer::ClientConnection Class Referenceabstract

#include <GenericMediaServer.hh>

Inheritance diagram for GenericMediaServer::ClientConnection:
Inheritance graph
[legend]
Collaboration diagram for GenericMediaServer::ClientConnection:
Collaboration graph
[legend]

Protected Member Functions

 ClientConnection (GenericMediaServer &ourServer, int clientSocket, struct sockaddr_storage const &clientAddr, Boolean useTLS)
 
virtual ~ClientConnection ()
 
UsageEnvironmentenvir ()
 
void closeSockets ()
 
void incomingRequestHandler ()
 
virtual void handleRequestBytes (int newBytesRead)=0
 
void resetRequestBuffer ()
 

Static Protected Member Functions

static void incomingRequestHandler (void *, int)
 

Protected Attributes

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 GenericMediaServer
 
class ClientSession
 
class RTSPServer
 

Detailed Description

Definition at line 103 of file GenericMediaServer.hh.

Constructor & Destructor Documentation

◆ ClientConnection()

GenericMediaServer::ClientConnection::ClientConnection ( GenericMediaServer ourServer,
int  clientSocket,
struct sockaddr_storage const &  clientAddr,
Boolean  useTLS 
)
protected

◆ ~ClientConnection()

virtual GenericMediaServer::ClientConnection::~ClientConnection ( )
protectedvirtual

Member Function Documentation

◆ closeSockets()

void GenericMediaServer::ClientConnection::closeSockets ( )
protected

◆ envir()

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

Definition at line 110 of file GenericMediaServer.hh.

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

References Medium::envir(), and fOurServer.

◆ handleRequestBytes()

virtual void GenericMediaServer::ClientConnection::handleRequestBytes ( int  newBytesRead)
protectedpure virtual

◆ incomingRequestHandler() [1/2]

void GenericMediaServer::ClientConnection::incomingRequestHandler ( )
protected

◆ incomingRequestHandler() [2/2]

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

◆ resetRequestBuffer()

void GenericMediaServer::ClientConnection::resetRequestBuffer ( )
protected

Friends And Related Function Documentation

◆ ClientSession

friend class ClientSession
friend

Definition at line 120 of file GenericMediaServer.hh.

◆ GenericMediaServer

friend class GenericMediaServer
friend

Definition at line 119 of file GenericMediaServer.hh.

◆ RTSPServer

friend class RTSPServer
friend

Definition at line 121 of file GenericMediaServer.hh.

Field Documentation

◆ fClientAddr

struct sockaddr_storage GenericMediaServer::ClientConnection::fClientAddr
protected

Definition at line 124 of file GenericMediaServer.hh.

◆ fInputTLS

ServerTLSState* GenericMediaServer::ClientConnection::fInputTLS
protected

Definition at line 131 of file GenericMediaServer.hh.

◆ fOurServer

GenericMediaServer& GenericMediaServer::ClientConnection::fOurServer
protected

Definition at line 122 of file GenericMediaServer.hh.

Referenced by envir().

◆ fOurSocket

int GenericMediaServer::ClientConnection::fOurSocket
protected

Definition at line 123 of file GenericMediaServer.hh.

◆ fOutputTLS

ServerTLSState* GenericMediaServer::ClientConnection::fOutputTLS
protected

Definition at line 132 of file GenericMediaServer.hh.

◆ fRequestBuffer

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

Definition at line 125 of file GenericMediaServer.hh.

◆ fRequestBufferBytesLeft

unsigned GenericMediaServer::ClientConnection::fRequestBufferBytesLeft
protected

Definition at line 127 of file GenericMediaServer.hh.

◆ fRequestBytesAlreadySeen

unsigned GenericMediaServer::ClientConnection::fRequestBytesAlreadySeen
protected

Definition at line 127 of file GenericMediaServer.hh.

◆ fResponseBuffer

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

Definition at line 126 of file GenericMediaServer.hh.

◆ fTLS

ServerTLSState GenericMediaServer::ClientConnection::fTLS
protected

Definition at line 130 of file GenericMediaServer.hh.


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