xrootd
Public Member Functions | Private Attributes
SocketHandler Class Reference
Inheritance diagram for SocketHandler:
Inheritance graph
[legend]
Collaboration diagram for SocketHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void Initialize (XrdCl::Poller *poller)
 Initializer.
virtual void Event (uint8_t type, XrdCl::Socket *socket)
 Called when an event occurred on a given socket.
void UpdateTransferMap (const std::string &sockName, const void *buffer, uint32_t size)
std::pair< uint64_t, uint32_t > GetReceivedStats (const std::string sockName) const
 Get the stats of the received data.
- Public Member Functions inherited from XrdCl::SocketHandler
virtual ~SocketHandler ()
virtual void Finalize ()
 Finalizer.

Private Attributes

Server::TransferMap pMap
XrdCl::Poller * pPoller

Additional Inherited Members

- Public Types inherited from XrdCl::SocketHandler
enum  EventType { ReadyToRead = 0x01, ReadTimeOut = 0x02, ReadyToWrite = 0x04, WriteTimeOut = 0x08 }
 Event type. More...
- Static Public Member Functions inherited from XrdCl::SocketHandler
static std::string EventTypeToString (uint8_t event)
 Translate the event type to a string.

Member Function Documentation

virtual void SocketHandler::Event ( uint8_t  type,
XrdCl::Socket *  socket 
)
inlinevirtual

Called when an event occurred on a given socket.

Implements XrdCl::SocketHandler.

References XrdCl::Socket::GetFD(), XrdCl::Socket::GetSockName(), and read().

std::pair<uint64_t, uint32_t> SocketHandler::GetReceivedStats ( const std::string  sockName) const
inline

Get the stats of the received data.

virtual void SocketHandler::Initialize ( XrdCl::Poller *  )
inlinevirtual

Initializer.

Reimplemented from XrdCl::SocketHandler.

void SocketHandler::UpdateTransferMap ( const std::string &  sockName,
const void *  buffer,
uint32_t  size 
)
inline

Member Data Documentation

Server::TransferMap SocketHandler::pMap
private
XrdCl::Poller* SocketHandler::pPoller
private

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