xrootd
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
XrdCl::ChannelEventHandler Class Referenceabstract

Channel event handler. More...

#include <XrdClPostMasterInterfaces.hh>

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)=0
 

Detailed Description

Channel event handler.

Member Enumeration Documentation

◆ ChannelEvent

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

◆ ~ChannelEventHandler()

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

Destructor.

Member Function Documentation

◆ OnChannelEvent()

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

Event callback

Parameters
eventthe event that has occurred
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: