xrootd
Public Member Functions
RandomHandler Class Reference
Inheritance diagram for RandomHandler:
Inheritance graph
[legend]
Collaboration diagram for RandomHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void HandleConnection (int socket)
- Public Member Functions inherited from XrdClTests::ClientHandler
 ClientHandler ()
 Constructor.
virtual ~ClientHandler ()
 Destructor.
void UpdateSentData (char *buffer, uint32_t size)
 Update statistics of the received data.
void UpdateReceivedData (char *buffer, uint32_t size)
 Update statistics of the sent data.
uint64_t GetSentBytes () const
 Get sent bytes count.
uint32_t GetSentChecksum () const
 Get the checksum of the sent data buffers.
uint64_t GetReceivedBytes () const
 Get the received bytes count.
uint32_t GetReceivedChecksum () const
 Get the checksum of the received data buffers.

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: