|
xrootd
|
#include <XrdClPostMasterInterfaces.hh>

Public Types | |
| enum | Action { Take = 0x01, Ignore = 0x02, RemoveHandler = 0x04 } |
| Actions to be taken after a message is processed by the handler. More... | |
| enum | StreamEvent { Ready = 1, Broken = 2, Timeout = 3, FatalError = 4 } |
| Events that may have occured to the stream. More... | |
Public Member Functions | |
| virtual | ~IncomingMsgHandler () |
| Event types that the message handler may receive. More... | |
| virtual uint8_t | OnIncoming (Message *msg)=0 |
| virtual uint8_t | OnStreamEvent (StreamEvent event, uint16_t streamNum, Status status) |
Message handler.
Events that may have occured to the stream.
| Enumerator | |
|---|---|
| Ready |
The stream has become connected. |
| Broken |
The stream is broken. |
| Timeout |
The declared timeout has occured. |
| FatalError |
Stream has been broken and won't be recovered. |
|
inlinevirtual |
Event types that the message handler may receive.
|
pure virtual |
Examine an incomming message, and decide on the action to be taken
| msg | the message, may be zero if receive failed |
Implemented in XrdCl::XRootDMsgHandler.
Referenced by XrdCl::InQueue::AddMessageHandler().
|
inlinevirtual |
Handle an event other that a message arrival
| event | type of the event |
| streamNum | stream concerned |
| status | status info |
Reimplemented in XrdCl::XRootDMsgHandler.
1.8.3.1