xrootd
Public Types | Public Member Functions
XrdCl::ChannelEventHandler Class Reference

Channel event handler. More...

#include <XrdClPostMasterInterfaces.hh>

List of all members.

Public Types

enum  ChannelEvent { StreamReady = 1, StreamBroken = 2, FatalError = 4 }
 Events that may have occurred to the channel. More...

Public Member Functions

virtual ~ChannelEventHandler ()
 Destructor.
virtual bool OnChannelEvent (ChannelEvent event, Status status, uint16_t stream)=0

Detailed Description

Channel event handler.


Member Enumeration Documentation

Events that may have occurred to the channel.

Enumerator:
StreamReady 

The stream has become connected.

StreamBroken 

The stream is broken.

FatalError 

Stream has been broken and won't be recovered.


Constructor & Destructor Documentation

virtual XrdCl::ChannelEventHandler::~ChannelEventHandler ( )
inlinevirtual

Destructor.


Member Function Documentation

virtual bool XrdCl::ChannelEventHandler::OnChannelEvent ( ChannelEvent  event,
Status  status,
uint16_t  stream 
)
pure virtual

Event callback

Parameters:
eventthe event that has occurred
streamthe stream concerned
statusthe status info
Returns:
true if the handler should be kept false if it should be removed from further consideration

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