|
xrootd
|
Interface for the client handler. More...
#include <Server.hh>

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 |
Interface for the client handler.
| XrdClTests::ClientHandler::ClientHandler | ( | ) |
Constructor.
References XrdClTests::Utils::ComputeCRC32(), pReceivedChecksum, and pSentChecksum.
|
virtual |
Destructor.
|
inline |
Get the received bytes count.
References pReceivedBytes.
|
inline |
Get the checksum of the received data buffers.
References pReceivedChecksum.
|
inline |
Get sent bytes count.
References pSentBytes.
|
inline |
Get the checksum of the sent data buffers.
References pSentChecksum.
|
pure virtual |
Handle connection
| socket | the 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().
|
private |
Referenced by GetReceivedBytes(), and UpdateReceivedData().
|
private |
Referenced by ClientHandler(), GetReceivedChecksum(), and UpdateReceivedData().
|
private |
Referenced by GetSentBytes(), and UpdateSentData().
|
private |
Referenced by ClientHandler(), GetSentChecksum(), and UpdateSentData().
1.8.3.1