xrootd
Public Member Functions | Private Attributes | List of all members
XrdClTests::ClientHandler Class Referenceabstract

Interface for the client handler. More...

#include <Server.hh>

Inheritance diagram for XrdClTests::ClientHandler:
Inheritance graph
[legend]

Public Member Functions

 ClientHandler ()
 Constructor. More...
 
virtual ~ClientHandler ()
 Destructor. More...
 
virtual void HandleConnection (int socket)=0
 
void UpdateSentData (char *buffer, uint32_t size)
 Update statistics of the received data. More...
 
void UpdateReceivedData (char *buffer, uint32_t size)
 Update statistics of the sent data. More...
 
uint64_t GetSentBytes () const
 Get sent bytes count. More...
 
uint32_t GetSentChecksum () const
 Get the checksum of the sent data buffers. More...
 
uint64_t GetReceivedBytes () const
 Get the received bytes count. More...
 
uint32_t GetReceivedChecksum () const
 Get the checksum of the received data buffers. More...
 

Private Attributes

uint64_t pSentBytes
 
uint64_t pReceivedBytes
 
uint32_t pSentChecksum
 
uint32_t pReceivedChecksum
 

Detailed Description

Interface for the client handler.

Constructor & Destructor Documentation

XrdClTests::ClientHandler::ClientHandler ( )
XrdClTests::ClientHandler::~ClientHandler ( )
virtual

Destructor.

Member Function Documentation

uint64_t XrdClTests::ClientHandler::GetReceivedBytes ( ) const
inline

Get the received bytes count.

References pReceivedBytes.

uint32_t XrdClTests::ClientHandler::GetReceivedChecksum ( ) const
inline

Get the checksum of the received data buffers.

References pReceivedChecksum.

uint64_t XrdClTests::ClientHandler::GetSentBytes ( ) const
inline

Get sent bytes count.

References pSentBytes.

uint32_t XrdClTests::ClientHandler::GetSentChecksum ( ) const
inline

Get the checksum of the sent data buffers.

References pSentChecksum.

virtual void XrdClTests::ClientHandler::HandleConnection ( int  socket)
pure virtual

Handle connection

Parameters
socketthe connection socket - needs to be closed when not needed

Implemented in RandomPumpHandler, and RandomHandler.

Referenced by HandleClient().

void XrdClTests::ClientHandler::UpdateReceivedData ( char *  buffer,
uint32_t  size 
)

Update statistics of the sent data.

References pReceivedBytes, pReceivedChecksum, and XrdClTests::Utils::UpdateCRC32().

void XrdClTests::ClientHandler::UpdateSentData ( char *  buffer,
uint32_t  size 
)

Update statistics of the received data.

References pSentBytes, pSentChecksum, and XrdClTests::Utils::UpdateCRC32().

Member Data Documentation

uint64_t XrdClTests::ClientHandler::pReceivedBytes
private
uint32_t XrdClTests::ClientHandler::pReceivedChecksum
private
uint64_t XrdClTests::ClientHandler::pSentBytes
private

Referenced by GetSentBytes(), and UpdateSentData().

uint32_t XrdClTests::ClientHandler::pSentChecksum
private

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