|
xrootd
|
#include <XrdClientAbs.hh>


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) |
| XrdClientConn * | GetClientConn () const |
| XrdClientUrlInfo | GetCurrentUrl () |
| struct ServerResponseHeader * | LastServerResp () |
| struct ServerResponseBody_Error * | LastServerError () |
| 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 | |
| XrdClientConn * | fConnModule |
| char | fHandle [4] |
| XrdClientCallback * | fXrdCcb |
| void * | fXrdCcbArg |
Friends | |
| class | XrdClientConn |
| XrdClientAbs::XrdClientAbs | ( | XrdClientCallback * | XrdCcb = 0, |
| void * | XrdCcbArg = 0 |
||
| ) | [inline] |
References fHandle, fXrdCcb, and fXrdCcbArg.
| 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] |
References fConnModule, and XrdClientConn::GetCurrentUrl().
Referenced by get_current_url(), XrdClientAdmin::DirList(), XrdClientAdmin::GetSpaceInfo(), XrdGetCurrentHost(), BuildPrompt(), executeDirListRec(), executeDirList(), executeCat(), executeCp(), CreateDestPath_xrd(), PedanticOpen4Write(), XrdXtRdFile::GetListOfSources(), XrdFfsMisc_get_current_url(), XrdPosixFile::Path(), and XrdPosixXrootd::endPoint().
| virtual bool XrdClientAbs::IsOpen_wait | ( | ) | [inline, virtual] |
Reimplemented in XrdClient.
Referenced by LastServerResp().
| struct ServerResponseBody_Error* XrdClientAbs::LastServerError | ( | ) | [inline, read] |
References fConnModule, and XrdClientConn::LastServerError.
Referenced by Fatal(), XrdCnsLogClient::Manifest(), XrdCnsLogClient::xrdEmsg(), CheckAnswer(), PrintLastServerError(), PedanticOpen4Write(), XrdPosixAdminNew::lastError(), XrdPosixAdminNew::XrdPosixAdminNew(), XrdPosixAdminNew::Fault(), XrdPosixDir::XrdPosixDir(), XrdPosixDir::nextEntry(), and XrdPosixXrootd::Fault().
| struct ServerResponseHeader* XrdClientAbs::LastServerResp | ( | ) | [inline, read] |
References IsOpen_wait(), fConnModule, and XrdClientConn::LastServerResp.
Referenced by Query(), XrdCnsLogClient::Archive(), XrdCnsLogClient::do_Create(), CheckAnswer(), doCp_xrd2xrd(), doCp_xrd2loc(), XrdPosixXrootd::Open(), and XrdPosixXrootd::OpenCB().
| 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 | ||
| ) |
| Resp | a prealocated buffer |
| MaxResplen | size 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 | ||
| ) |
| Resp | pointer 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() |
| MaxResplen | size 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 | ||
| ) |
References DebugLevel, XrdClientDebug::kUSERDEBUG, Info, and EnvPutInt.
| void XrdClientAbs::SetParm | ( | const char * | parm, |
| double | val | ||
| ) |
References DebugLevel, XrdClientDebug::kUSERDEBUG, and Info.
friend class XrdClientConn [friend] |
Referenced by XrdClient::XrdClient(), and XrdClientAdmin::XrdClientAdmin().
XrdClientConn* XrdClientAbs::fConnModule [protected] |
Referenced by XrdClient::XrdClient(), XrdClient::~XrdClient(), XrdClient::Open(), XrdClient::Read(), XrdClient::ReadV(), XrdClient::Write(), XrdClient::Sync(), XrdClient::TryOpen(), XrdClient::LowOpen(), XrdClient::Stat(), XrdClient::Close(), XrdClient::ProcessUnsolicitedMsg(), XrdClient::Read_Async(), XrdClient::Truncate(), XrdClient::UseCache(), XrdClient::SetCacheParameters(), XrdClient::SetReadAheadStrategy(), XrdClient::GetCacheInfo(), XrdClient::RemoveAllDataFromCache(), XrdClient::RemoveDataFromCache(), Query(), GetClientConn(), GetCurrentUrl(), LastServerResp(), LastServerError(), XrdClientAdmin::XrdClientAdmin(), XrdClientAdmin::~XrdClientAdmin(), XrdClientAdmin::Connect(), XrdClientAdmin::Stat(), XrdClientAdmin::Stat_vfs(), XrdClientAdmin::SysStatX(), XrdClientAdmin::Rmdir(), XrdClientAdmin::Rm(), XrdClientAdmin::Chmod(), XrdClientAdmin::Mkdir(), XrdClientAdmin::Mv(), XrdClientAdmin::ProcessUnsolicitedMsg(), XrdClientAdmin::Protocol(), XrdClientAdmin::Prepare(), XrdClientAdmin::DirList(), XrdClientAdmin::DirList_low(), XrdClientAdmin::GetChecksum(), XrdClientAdmin::LocalLocate(), XrdClientAdmin::Locate(), XrdClientAdmin::Truncate(), XrdClientAdmin::GoBackToRedirector(), and XrdClientAdmin::GetSpaceInfo().
char XrdClientAbs::fHandle[4] [protected] |
XrdClientCallback* XrdClientAbs::fXrdCcb [protected] |
Referenced by FileOpenerThread(), XrdClient::Open(), and XrdClientAbs().
void* XrdClientAbs::fXrdCcbArg [protected] |
Referenced by FileOpenerThread(), XrdClient::Open(), and XrdClientAbs().
1.7.5