xrootd
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
XrdClientAbs Class Reference

#include <XrdClientAbs.hh>

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

List of all members.

Public Member Functions

 XrdClientAbs (XrdClientCallback *XrdCcb=0, void *XrdCcbArg=0)
virtual bool IsOpen_wait ()
void SetParm (const char *parm, int val)
void SetParm (const char *parm, double val)
XrdClientConnGetClientConn () const
XrdClientUrlInfo GetCurrentUrl ()
struct ServerResponseHeaderLastServerResp ()
struct ServerResponseBody_ErrorLastServerError ()
bool Query (kXR_int16 ReqCode, const kXR_char *Args, kXR_char *Resp, kXR_int32 MaxResplen)
bool Query (kXR_int16 ReqCode, const kXR_char *Args, kXR_char **Resp, kXR_int32 MaxResplen)

Protected Member Functions

virtual bool OpenFileWhenRedirected (char *newfhandle, bool &wasopen)=0
virtual bool CanRedirOnError ()=0

Protected Attributes

XrdClientConnfConnModule
char fHandle [4]
XrdClientCallbackfXrdCcb
void * fXrdCcbArg

Friends

class XrdClientConn

Constructor & Destructor Documentation

XrdClientAbs::XrdClientAbs ( XrdClientCallback XrdCcb = 0,
void *  XrdCcbArg = 0 
) [inline]

References fHandle, fXrdCcb, and fXrdCcbArg.


Member Function Documentation

virtual bool XrdClientAbs::CanRedirOnError ( ) [protected, pure virtual]

Implemented in XrdClient, and XrdClientAdmin.

Referenced by XrdClientConn::HandleServerError().

XrdClientConn* XrdClientAbs::GetClientConn ( ) const [inline]

References fConnModule.

XrdClientUrlInfo XrdClientAbs::GetCurrentUrl ( ) [inline]
virtual bool XrdClientAbs::IsOpen_wait ( ) [inline, virtual]

Reimplemented in XrdClient.

Referenced by LastServerResp().

struct ServerResponseBody_Error* XrdClientAbs::LastServerError ( ) [inline, read]
struct ServerResponseHeader* XrdClientAbs::LastServerResp ( ) [inline, read]
virtual bool XrdClientAbs::OpenFileWhenRedirected ( char *  newfhandle,
bool &  wasopen 
) [protected, pure virtual]

Implemented in XrdClient, and XrdClientAdmin.

Referenced by XrdClientConn::HandleServerError().

bool XrdClientAbs::Query ( kXR_int16  ReqCode,
const kXR_char Args,
kXR_char Resp,
kXR_int32  MaxResplen 
)
Parameters:
Respa prealocated buffer
MaxResplensize of the buffer

Referenced by executeQuery(), BWMToken_WaitFor(), XrdPosixXrootd::Getxattr(), XrdPosixXrootd::QueryChksum(), and XrdPosixXrootd::QueryOpaque().

bool XrdClientAbs::Query ( kXR_int16  ReqCode,
const kXR_char Args,
kXR_char **  Resp,
kXR_int32  MaxResplen 
)
Parameters:
Resppointer to a preallocated buffer or a pointer to 0 if a sufficiently large buffer should be allocated automagically, in which case the buffer needs to be freed with free()
MaxResplensize of the buffer or 0 for automatic allocation

References fConnModule, XrdClientConn::IsConnected(), XrdClientConn::SetOpTimeLimit(), EnvGetLong, NAME_TRANSACTIONTIMEOUT, XrdClientConn::SetSID(), ClientRequest::header, ClientRequestHdr::streamid, ClientRequest::query, ClientQueryRequest::requestid, kXR_query, ClientQueryRequest::infotype, ClientQueryRequest::dlen, kXR_Qvisa, ClientQueryRequest::fhandle, fHandle, XrdClientConn::SendGenCommand(), Info, XrdClientDebug::kHIDEBUG, LastServerResp(), kXR_ok, xrdmin, and ServerResponseHeader::dlen.

void XrdClientAbs::SetParm ( const char *  parm,
int  val 
)
void XrdClientAbs::SetParm ( const char *  parm,
double  val 
)

Friends And Related Function Documentation

friend class XrdClientConn [friend]

Member Data Documentation

char XrdClientAbs::fHandle[4] [protected]
void* XrdClientAbs::fXrdCcbArg [protected]

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