xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
XrdXrootdCallBack Class Reference

#include <XrdXrootdCallBack.hh>

Inheritance diagram for XrdXrootdCallBack:
Inheritance graph
[legend]
Collaboration diagram for XrdXrootdCallBack:
Collaboration graph
[legend]

Public Member Functions

void Done (int &Result, XrdOucErrInfo *eInfo, const char *Path=0)
 
const char * Func ()
 
char Oper ()
 
int Same (unsigned long long arg1, unsigned long long arg2)
 
void sendError (int rc, XrdOucErrInfo *eInfo, const char *Path)
 
void sendResp (XrdOucErrInfo *eInfo, XResponseType xrt, int *Data=0, const char *Msg=0, int Mlen=0)
 
void sendVesp (XrdOucErrInfo *eInfo, XResponseType xrt, struct iovec *ioV, int ioN)
 
 XrdXrootdCallBack (const char *opn, const char opc)
 
 ~XrdXrootdCallBack ()
 
- Public Member Functions inherited from XrdOucEICB
 XrdOucEICB ()
 Constructor and destructor.
 
virtual ~XrdOucEICB ()
 

Static Public Member Functions

static void setVals (XrdSysError *erp, XrdXrootdStats *SIp, XrdScheduler *schp, int port)
 

Private Attributes

const char * Opname
 
const char Opcode
 

Constructor & Destructor Documentation

◆ XrdXrootdCallBack()

XrdXrootdCallBack::XrdXrootdCallBack ( const char *  opn,
const char  opc 
)
inline

◆ ~XrdXrootdCallBack()

XrdXrootdCallBack::~XrdXrootdCallBack ( )
inline

Member Function Documentation

◆ Done()

void XrdXrootdCallBack::Done ( int &  Result,
XrdOucErrInfo eInfo,
const char *  Path = 0 
)
virtual

Invoke a callback after an operation completes.

Parameters
Result- the original function's result (may be changed).
eInfo- Associated error information. The eInfo object may not be modified until it's own callback Done() method is called, if supplied. If the callback function in eInfo is zero, then the eInfo object is deleted by the invoked callback. Otherwise, that method must be invoked by this callback function after the actual callback message is sent. This allows the callback requestor to do post-processing and be asynchronous being assured that the callback completed.
Path- Optionally, the path related to thid request. It is used for tracing and detailed monitoring purposes.

Implements XrdOucEICB.

◆ Func()

const char * XrdXrootdCallBack::Func ( )
inline

References Opname.

◆ Oper()

char XrdXrootdCallBack::Oper ( )
inline

References Opcode.

◆ Same()

int XrdXrootdCallBack::Same ( unsigned long long  arg1,
unsigned long long  arg2 
)
virtual

Determine if two callback arguments refer to the same client.

Parameters
arg1- The first callback argument.
arg2- The second callback argument.
Returns
!0 - The arguments refer to the same client.
=0 - The arguments refer to the different clients.

Implements XrdOucEICB.

◆ sendError()

void XrdXrootdCallBack::sendError ( int  rc,
XrdOucErrInfo eInfo,
const char *  Path 
)

◆ sendResp()

void XrdXrootdCallBack::sendResp ( XrdOucErrInfo eInfo,
XResponseType  xrt,
int *  Data = 0,
const char *  Msg = 0,
int  Mlen = 0 
)

◆ sendVesp()

void XrdXrootdCallBack::sendVesp ( XrdOucErrInfo eInfo,
XResponseType  xrt,
struct iovec *  ioV,
int  ioN 
)

◆ setVals()

static void XrdXrootdCallBack::setVals ( XrdSysError erp,
XrdXrootdStats SIp,
XrdScheduler schp,
int  port 
)
static

Member Data Documentation

◆ Opcode

const char XrdXrootdCallBack::Opcode
private

Referenced by Oper().

◆ Opname

const char* XrdXrootdCallBack::Opname
private

Referenced by Func().


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