Print

Print


The XRootD protocol suppotrs async notifications from a connected server. Currently, the client ignores such notifications. This ticket recommends that the client support a a static callback mechanism so that an application can register a callback to field such messages. Something akin to:

class MsgCallBack
{public:
 virtual void Attention(const char *host, char *msg, int msglen) = 0;
 virtual ~MsgCallBack();
};
Where host is the hostname or IP address of the sending server, msg points to the modifiable message, and msglen is its length.

Upon return, the message should be deleted by the client.

The callback should be registered using:

static MsgCallBack *Register(MsgCallBack *msgcb);

If msgcb is NIL then the existing callback, if any, should be de-registered. If a callback is already registered, the new callback should replace the existing one. The method returns the previous callback pointer, which may be NIL.

Since the callback registry is global, it's seems appropriate to add it to the FileSystem class.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/971

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1