xrootd
Public Member Functions | List of all members
XrdCl::OutgoingMsgHandler Class Referenceabstract

Message status handler. More...

#include <XrdClPostMasterInterfaces.hh>

Inheritance diagram for XrdCl::OutgoingMsgHandler:
Inheritance graph
[legend]

Public Member Functions

virtual ~OutgoingMsgHandler ()
 
virtual void OnStatusReady (const Message *message, XRootDStatus status)=0
 The requested action has been performed and the status is available. More...
 
virtual void OnReadyToSend (Message *msg)
 
virtual bool IsRaw () const
 
virtual Status WriteMessageBody (Socket *socket, uint32_t &bytesWritten)
 

Detailed Description

Message status handler.

Constructor & Destructor Documentation

◆ ~OutgoingMsgHandler()

virtual XrdCl::OutgoingMsgHandler::~OutgoingMsgHandler ( )
inlinevirtual

Member Function Documentation

◆ IsRaw()

virtual bool XrdCl::OutgoingMsgHandler::IsRaw ( ) const
inlinevirtual

Determines whether the handler wants to write some data directly to the socket after the message (or message header) has been sent, WriteMessageBody will be called

Reimplemented in XrdCl::XRootDMsgHandler.

◆ OnReadyToSend()

virtual void XrdCl::OutgoingMsgHandler::OnReadyToSend ( Message msg)
inlinevirtual

Called just before the message is going to be sent through a valid connection, so that the user can still make some modifications that were impossible before (ie. protocol version dependent adjustments)

Parameters
msgmessage concerned

◆ OnStatusReady()

virtual void XrdCl::OutgoingMsgHandler::OnStatusReady ( const Message message,
XRootDStatus  status 
)
pure virtual

The requested action has been performed and the status is available.

Implemented in XrdCl::XRootDMsgHandler.

◆ WriteMessageBody()

virtual Status XrdCl::OutgoingMsgHandler::WriteMessageBody ( Socket socket,
uint32_t &  bytesWritten 
)
inlinevirtual

Write message body directly to a socket - called if IsRaw returns true - only socket related errors may be returned here

Parameters
socketthe socket to read from
bytesReadnumber of bytes read by the method
Returns
stOK & suDone if the whole body has been processed stOK & suRetry if more data needs to be written stError on failure

Reimplemented in XrdCl::XRootDMsgHandler.


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