XRootD
XrdOfsEvr::theClient Class Reference

#include <XrdOfsEvr.hh>

+ Inheritance diagram for XrdOfsEvr::theClient:
+ Collaboration diagram for XrdOfsEvr::theClient:

Public Member Functions

 theClient (XrdOfsEvr *evr, XrdOucErrInfo *einfo, const char *path=0)
 
 ~theClient ()
 
void Done (int &Result, XrdOucErrInfo *eInfo, const char *path=0)
 
int Same (unsigned long long arg1, unsigned long long arg2)
 

Public Attributes

XrdOfsEvrEvrP
 
XrdOucEICBevtCB
 
unsigned long long evtCBarg
 
theClientNext
 
char * Path
 
const char * User
 

Detailed Description

Definition at line 62 of file XrdOfsEvr.hh.

Constructor & Destructor Documentation

◆ theClient()

XrdOfsEvr::theClient::theClient ( XrdOfsEvr evr,
XrdOucErrInfo einfo,
const char *  path = 0 
)
inline

Definition at line 79 of file XrdOfsEvr.hh.

80  {evtCB = einfo->getErrCB(evtCBarg);
81  User = einfo->getErrUser();
82  Path = (path ? strdup(path) : 0);
83  EvrP = evr;
84  Next = 0;
85  }
XrdOucEICB * evtCB
Definition: XrdOfsEvr.hh:76
XrdOfsEvr * EvrP
Definition: XrdOfsEvr.hh:75
unsigned long long evtCBarg
Definition: XrdOfsEvr.hh:77
theClient * Next
Definition: XrdOfsEvr.hh:72
const char * User
Definition: XrdOfsEvr.hh:73
XrdOucEICB * getErrCB()
const char * getErrUser()

References EvrP, evtCB, evtCBarg, XrdOucErrInfo::getErrCB(), XrdOucErrInfo::getErrUser(), Next, Path, and User.

+ Here is the call graph for this function:

◆ ~theClient()

XrdOfsEvr::theClient::~theClient ( )
inline

Definition at line 86 of file XrdOfsEvr.hh.

86 {if (Path) free(Path);}

References Path.

Member Function Documentation

◆ Done()

void XrdOfsEvr::theClient::Done ( int &  Result,
XrdOucErrInfo eInfo,
const char *  Path = 0 
)
inlinevirtual

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.

Definition at line 66 of file XrdOfsEvr.hh.

67  { (void)Result; (void)eInfo; (void)path; EvrP->Work4Event(this);}
void Work4Event(theClient *Client)
Definition: XrdOfsEvr.cc:240

References EvrP, and XrdOfsEvr::Work4Event().

+ Here is the call graph for this function:

◆ Same()

int XrdOfsEvr::theClient::Same ( unsigned long long  arg1,
unsigned long long  arg2 
)
inlinevirtual

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.

Definition at line 69 of file XrdOfsEvr.hh.

70 { (void)arg1; (void)arg2; return 0;}

Member Data Documentation

◆ EvrP

XrdOfsEvr* XrdOfsEvr::theClient::EvrP

Definition at line 75 of file XrdOfsEvr.hh.

Referenced by theClient(), and Done().

◆ evtCB

XrdOucEICB* XrdOfsEvr::theClient::evtCB

Definition at line 76 of file XrdOfsEvr.hh.

Referenced by theClient(), and XrdOfsEvr::Work4Event().

◆ evtCBarg

unsigned long long XrdOfsEvr::theClient::evtCBarg

Definition at line 77 of file XrdOfsEvr.hh.

Referenced by theClient(), and XrdOfsEvr::Work4Event().

◆ Next

theClient* XrdOfsEvr::theClient::Next

Definition at line 72 of file XrdOfsEvr.hh.

Referenced by theClient(), XrdOfsEvr::flushEvents(), and XrdOfsEvr::Work4Event().

◆ Path

char* XrdOfsEvr::theClient::Path

Definition at line 74 of file XrdOfsEvr.hh.

Referenced by theClient(), ~theClient(), XrdOfsEvr::flushEvents(), and XrdOfsEvr::Work4Event().

◆ User

const char* XrdOfsEvr::theClient::User

Definition at line 73 of file XrdOfsEvr.hh.

Referenced by theClient().


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