xrootd
Public Member Functions | List of all members
RandomHandler Class Reference
Inheritance diagram for RandomHandler:
Inheritance graph
[legend]
Collaboration diagram for RandomHandler:
Collaboration graph
[legend]

Public Member Functions

virtual void HandleConnection (int socket)
 
- Public Member Functions inherited from XrdClTests::ClientHandler
 ClientHandler ()
 Constructor. More...
 
virtual ~ClientHandler ()
 Destructor. More...
 
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...
 

Member Function Documentation

virtual void RandomHandler::HandleConnection ( int  socket)
inlinevirtual

Handle connection

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

Implements XrdClTests::ClientHandler.

References XrdCl::Log::Debug(), XrdCl::Log::Dump(), XrdCl::Log::Error(), XrdClTests::TestEnv::GetLog(), XrdClTests::Utils::GetRandomBytes(), read(), and write().


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