xrootd
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
XrdClientAbs Class Reference

#include <XrdClientAbs.hh>

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

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)
- Public Member Functions inherited from XrdClientAbsUnsolMsgHandler
virtual ~XrdClientAbsUnsolMsgHandler ()
virtual UnsolRespProcResult ProcessUnsolicitedMsg (XrdClientUnsolMsgSender *sender, XrdClientMessage *unsolmsg)=0

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 ( )
protectedpure 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 ( )
inlinevirtual

Reimplemented in XrdClient.

Referenced by LastServerResp().

struct ServerResponseBody_Error* XrdClientAbs::LastServerError ( )
inlineread
struct ServerResponseHeader* XrdClientAbs::LastServerResp ( )
inlineread
virtual bool XrdClientAbs::OpenFileWhenRedirected ( char *  newfhandle,
bool &  wasopen 
)
protectedpure 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 BWMToken_WaitFor(), executeQuery(), 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 ClientQueryRequest::dlen, ServerResponseHeader::dlen, EnvGetLong, fConnModule, fHandle, ClientQueryRequest::fhandle, ClientRequest::header, Info, ClientQueryRequest::infotype, XrdClientConn::IsConnected(), XrdClientDebug::kHIDEBUG, kXR_ok, kXR_query, kXR_Qvisa, LastServerResp(), NAME_TRANSACTIONTIMEOUT, ClientRequest::query, ClientQueryRequest::requestid, XrdClientConn::SendGenCommand(), XrdClientConn::SetOpTimeLimit(), XrdClientConn::SetSID(), ClientRequestHdr::streamid, and xrdmin.

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

XrdClientConn* XrdClientAbs::fConnModule
protected
char XrdClientAbs::fHandle[4]
protected
XrdClientCallback* XrdClientAbs::fXrdCcb
protected
void* XrdClientAbs::fXrdCcbArg
protected

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