ROOT
6.06/09
Reference Guide
|
Definition at line 54 of file XrdClientConn.hh.
Classes | |
struct | SessionIDInfo |
Public Types | |
enum | ESrvErrorHandlerRetval { kSEHRReturnMsgToCaller = 0, kSEHRBreakLoop = 1, kSEHRContinue = 2, kSEHRReturnNoMsgToCaller = 3, kSEHRRedirLimitReached = 4 } |
enum | EThreeStateReadHandler { kTSRHReturnMex = 0, kTSRHReturnNullMex = 1, kTSRHContinue = 2 } |
Public Member Functions | |
XrdClientConn () | |
virtual | ~XrdClientConn () |
bool | CacheWillFit (long long bytes) |
bool | CheckHostDomain (XrdOucString hostToCheck) |
short | Connect (XrdClientUrlInfo Host2Conn, XrdClientAbsUnsolMsgHandler *unsolhandler) |
void | Disconnect (bool ForcePhysicalDisc) |
virtual bool | GetAccessToSrv () |
XReqErrorType | GoBackToRedirector () |
XrdOucString | GetClientHostDomain () |
long | GetDataFromCache (const void *buffer, long long begin_offs, long long end_offs, bool PerfCalc, XrdClientIntvList &missingblks, long &outstandingblks) |
bool | SubmitDataToCache (XrdClientMessage *xmsg, long long begin_offs, long long end_offs) |
bool | SubmitRawDataToCache (const void *buffer, long long begin_offs, long long end_offs) |
void | SubmitPlaceholderToCache (long long begin_offs, long long end_offs) |
void | RemoveAllDataFromCache (bool keepwriteblocks=true) |
void | RemoveDataFromCache (long long begin_offs, long long end_offs, bool remove_overlapped=false) |
void | RemovePlaceholdersFromCache () |
void | PrintCache () |
bool | GetCacheInfo (int &size, long long &bytessubmitted, long long &byteshit, long long &misscount, float &missrate, long long &readreqcnt, float &bytesusefulness) |
void | SetCacheSize (int CacheSize) |
void | SetCacheRmPolicy (int RmPolicy) |
void | UnPinCacheBlk (long long begin_offs, long long end_offs) |
int | GetLogConnID () const |
ERemoteServerType | GetServerType () const |
kXR_unt16 | GetStreamID () const |
XrdClientUrlInfo * | GetLBSUrl () |
XrdClientUrlInfo * | GetMetaUrl () |
XrdClientUrlInfo | GetCurrentUrl () |
XrdClientUrlInfo | GetRedirUrl () |
XErrorCode | GetOpenError () const |
virtual XReqErrorType | GoToAnotherServer (XrdClientUrlInfo &newdest) |
virtual XReqErrorType | GoToMetaManager () |
bool | IsConnected () const |
bool | IsPhyConnConnected () |
void | ClearLastServerError () |
UnsolRespProcResult | ProcessAsynResp (XrdClientMessage *unsolmsg) |
virtual bool | SendGenCommand (ClientRequest *req, const void *reqMoreData, void **answMoreDataAllocated, void *answMoreData, bool HasToAlloc, char *CmdName, int substreamid=0) |
int | GetOpenSockFD () const |
void | SetClientHostDomain (const char *src) |
void | SetConnected (bool conn) |
void | SetOpenError (XErrorCode err) |
int | GetParallelStreamToUse (int reqsperstream) |
int | GetParallelStreamCount () |
void | SetRedirHandler (XrdClientAbs *rh) |
void | SetRequestedDestHost (char *newh, kXR_int32 port) |
void | SetREQPauseState (kXR_int32 wsec) |
void | SetREQDelayedConnectState (kXR_int32 wsec) |
void | SetSID (kXR_char *sid) |
void | SetUrl (XrdClientUrlInfo thisUrl) |
XReqErrorType | WriteToServer_Async (ClientRequest *req, const void *reqMoreData, int substreamid=0) |
void | GetSessionID (SessionIDInfo &sess) |
long | GetServerProtocol () |
short | GetMaxRedirCnt () const |
void | SetMaxRedirCnt (short mx) |
short | GetRedirCnt () const |
bool | DoWriteSoftCheckPoint () |
bool | DoWriteHardCheckPoint () |
void | UnPinCacheBlk () |
void | SetOpTimeLimit (int delta_secs) |
bool | IsOpTimeLimitElapsed (time_t timenow) |
Static Public Member Functions | |
static XrdClientPhyConnection * | GetPhyConn (int LogConnID) |
static XrdClientConnectionMgr * | GetConnectionMgr () |
static void | DelSessionIDRepo () |
Public Attributes | |
int | fLastDataBytesRecv |
int | fLastDataBytesSent |
XErrorCode | fOpenError |
XrdOucString | fRedirOpaque |
struct ServerResponseHeader | LastServerResp |
struct ServerResponseBody_Error | LastServerError |
XrdOucString | fRedirCGI |
Protected Member Functions | |
void | SetLogConnID (int cid) |
void | SetStreamID (kXR_unt16 sid) |
Protected Attributes | |
XrdClientAbsUnsolMsgHandler * | fUnsolMsgHandler |
XrdClientUrlInfo | fUrl |
XrdClientUrlInfo * | fLBSUrl |
XrdClientUrlInfo | fREQUrl |
short | fGlobalRedirCnt |
Private Member Functions | |
bool | CheckErrorStatus (XrdClientMessage *, short &, char *) |
void | CheckPort (int &port) |
void | CheckREQPauseState () |
void | CheckREQConnectWaitState () |
bool | CheckResp (struct ServerResponseHeader *resp, const char *method) |
XrdClientMessage * | ClientServerCmd (ClientRequest *req, const void *reqMoreData, void **answMoreDataAllocated, void *answMoreData, bool HasToAlloc, int substreamid=0) |
XrdSecProtocol * | DoAuthentication (char *plist, int plsiz) |
ERemoteServerType | DoHandShake (short log) |
bool | DoLogin () |
bool | DomainMatcher (XrdOucString dom, XrdOucString domlist) |
XrdOucString | GetDomainToMatch (XrdOucString hostname) |
ESrvErrorHandlerRetval | HandleServerError (XReqErrorType &, XrdClientMessage *, ClientRequest *) |
bool | MatchStreamid (struct ServerResponseHeader *ServerResponse) |
bool | PanicClose () |
XrdOucString | ParseDomainFromHostname (XrdOucString hostname) |
XrdClientMessage * | ReadPartialAnswer (XReqErrorType &, size_t &, ClientRequest *, bool, void **, EThreeStateReadHandler &) |
XReqErrorType | WriteToServer (ClientRequest *req, const void *reqMoreData, short LogConnID, int substreamid=0) |
bool | WaitResp (int secsmax) |
Private Attributes | |
bool | fConnected |
bool | fGettingAccessToSrv |
time_t | fGlobalRedirLastUpdateTimestamp |
int | fLogConnID |
kXR_unt16 | fPrimaryStreamid |
short | fMaxGlobalRedirCnt |
XrdClientReadCache * | fMainReadCache |
time_t | fOpTimeLimit |
XrdClientAbs * | fRedirHandler |
XrdOucString | fRedirInternalToken |
XrdSysCondVar * | fREQWaitResp |
ServerResponseBody_Attn_asynresp * | fREQWaitRespData |
time_t | fREQWaitTimeLimit |
XrdSysCondVar * | fREQWait |
time_t | fREQConnectWaitTimeLimit |
XrdSysCondVar * | fREQConnectWait |
long | fServerProto |
ERemoteServerType | fServerType |
SessionIDInfo | mySessionID |
int | fOpenSockFD |
XrdSysCondVar * | fWriteWaitAck |
XrdClientVector< ClientRequest > | fWriteReqsToRetry |
XrdClientUrlInfo * | fMetaUrl |
bool | fLBSIsMeta |
Static Private Attributes | |
static XrdOucString | fgClientHostDomain |
static XrdSysMutex | fSessionIDRMutex |
static XrdOucHash< SessionIDInfo > | fSessionIDRepo |
static XrdClientConnectionMgr * | fgConnectionMgr |
Enumerator | |
---|---|
kSEHRReturnMsgToCaller | |
kSEHRBreakLoop | |
kSEHRContinue | |
kSEHRReturnNoMsgToCaller | |
kSEHRRedirLimitReached |
Definition at line 58 of file XrdClientConn.hh.
Enumerator | |
---|---|
kTSRHReturnMex | |
kTSRHReturnNullMex | |
kTSRHContinue |
Definition at line 65 of file XrdClientConn.hh.
XrdClientConn::XrdClientConn | ( | ) |
|
virtual |
|
inline |
Definition at line 86 of file XrdClientConn.hh.
|
private |
bool XrdClientConn::CheckHostDomain | ( | XrdOucString | hostToCheck | ) |
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 233 of file XrdClientConn.hh.
|
private |
short XrdClientConn::Connect | ( | XrdClientUrlInfo | Host2Conn, |
XrdClientAbsUnsolMsgHandler * | unsolhandler | ||
) |
|
inlinestatic |
Definition at line 314 of file XrdClientConn.hh.
void XrdClientConn::Disconnect | ( | bool | ForcePhysicalDisc | ) |
|
private |
|
private |
|
private |
|
private |
bool XrdClientConn::DoWriteHardCheckPoint | ( | ) |
bool XrdClientConn::DoWriteSoftCheckPoint | ( | ) |
|
virtual |
|
inline |
Definition at line 151 of file XrdClientConn.hh.
|
inline |
Definition at line 99 of file XrdClientConn.hh.
|
inlinestatic |
Definition at line 311 of file XrdClientConn.hh.
|
inline |
Definition at line 218 of file XrdClientConn.hh.
long XrdClientConn::GetDataFromCache | ( | const void * | buffer, |
long long | begin_offs, | ||
long long | end_offs, | ||
bool | PerfCalc, | ||
XrdClientIntvList & | missingblks, | ||
long & | outstandingblks | ||
) |
|
private |
|
inline |
Definition at line 216 of file XrdClientConn.hh.
|
inline |
Definition at line 210 of file XrdClientConn.hh.
|
inline |
Definition at line 323 of file XrdClientConn.hh.
|
inline |
Definition at line 217 of file XrdClientConn.hh.
|
inline |
Definition at line 221 of file XrdClientConn.hh.
|
inline |
Definition at line 246 of file XrdClientConn.hh.
int XrdClientConn::GetParallelStreamCount | ( | ) |
int XrdClientConn::GetParallelStreamToUse | ( | int | reqsperstream | ) |
|
static |
|
inline |
Definition at line 325 of file XrdClientConn.hh.
|
inline |
Definition at line 219 of file XrdClientConn.hh.
|
inline |
Definition at line 321 of file XrdClientConn.hh.
|
inline |
Definition at line 212 of file XrdClientConn.hh.
|
inline |
Definition at line 319 of file XrdClientConn.hh.
|
inline |
Definition at line 214 of file XrdClientConn.hh.
XReqErrorType XrdClientConn::GoBackToRedirector | ( | ) |
|
virtual |
|
virtual |
|
private |
|
inline |
Definition at line 224 of file XrdClientConn.hh.
bool XrdClientConn::IsOpTimeLimitElapsed | ( | time_t | timenow | ) |
bool XrdClientConn::IsPhyConnConnected | ( | ) |
|
private |
|
private |
|
private |
|
inline |
Definition at line 145 of file XrdClientConn.hh.
UnsolRespProcResult XrdClientConn::ProcessAsynResp | ( | XrdClientMessage * | unsolmsg | ) |
|
private |
|
inline |
Definition at line 129 of file XrdClientConn.hh.
|
inline |
Definition at line 134 of file XrdClientConn.hh.
|
inline |
Definition at line 140 of file XrdClientConn.hh.
|
virtual |
|
inline |
Definition at line 195 of file XrdClientConn.hh.
|
inline |
Definition at line 187 of file XrdClientConn.hh.
|
inline |
Definition at line 248 of file XrdClientConn.hh.
|
inline |
Definition at line 249 of file XrdClientConn.hh.
|
inlineprotected |
Definition at line 339 of file XrdClientConn.hh.
|
inline |
Definition at line 324 of file XrdClientConn.hh.
|
inline |
Definition at line 251 of file XrdClientConn.hh.
void XrdClientConn::SetOpTimeLimit | ( | int | delta_secs | ) |
|
inline |
Definition at line 257 of file XrdClientConn.hh.
|
inline |
Definition at line 286 of file XrdClientConn.hh.
|
inline |
Definition at line 268 of file XrdClientConn.hh.
|
inline |
Definition at line 259 of file XrdClientConn.hh.
void XrdClientConn::SetSID | ( | kXR_char * | sid | ) |
|
inlineprotected |
Definition at line 340 of file XrdClientConn.hh.
|
inline |
Definition at line 302 of file XrdClientConn.hh.
bool XrdClientConn::SubmitDataToCache | ( | XrdClientMessage * | xmsg, |
long long | begin_offs, | ||
long long | end_offs | ||
) |
|
inline |
Definition at line 122 of file XrdClientConn.hh.
bool XrdClientConn::SubmitRawDataToCache | ( | const void * | buffer, |
long long | begin_offs, | ||
long long | end_offs | ||
) |
|
inline |
Definition at line 200 of file XrdClientConn.hh.
void XrdClientConn::UnPinCacheBlk | ( | ) |
|
private |
|
private |
XReqErrorType XrdClientConn::WriteToServer_Async | ( | ClientRequest * | req, |
const void * | reqMoreData, | ||
int | substreamid = 0 |
||
) |
|
private |
Definition at line 356 of file XrdClientConn.hh.
Referenced by IsConnected(), and SetConnected().
|
staticprivate |
Definition at line 355 of file XrdClientConn.hh.
Referenced by GetClientHostDomain(), and SetClientHostDomain().
|
staticprivate |
Definition at line 399 of file XrdClientConn.hh.
Referenced by GetConnectionMgr().
|
private |
Definition at line 357 of file XrdClientConn.hh.
|
protected |
Definition at line 351 of file XrdClientConn.hh.
Referenced by GetRedirCnt().
|
private |
Definition at line 358 of file XrdClientConn.hh.
int XrdClientConn::fLastDataBytesRecv |
Definition at line 76 of file XrdClientConn.hh.
int XrdClientConn::fLastDataBytesSent |
Definition at line 77 of file XrdClientConn.hh.
|
private |
Definition at line 448 of file XrdClientConn.hh.
|
protected |
Definition at line 348 of file XrdClientConn.hh.
Referenced by GetLBSUrl().
|
private |
Definition at line 360 of file XrdClientConn.hh.
Referenced by GetLogConnID(), and SetLogConnID().
|
private |
Definition at line 366 of file XrdClientConn.hh.
Referenced by CacheWillFit(), GetCacheInfo(), PrintCache(), RemoveAllDataFromCache(), RemoveDataFromCache(), RemovePlaceholdersFromCache(), SetCacheRmPolicy(), SetCacheSize(), SubmitPlaceholderToCache(), and UnPinCacheBlk().
|
private |
Definition at line 365 of file XrdClientConn.hh.
Referenced by GetMaxRedirCnt(), and SetMaxRedirCnt().
|
private |
Definition at line 447 of file XrdClientConn.hh.
Referenced by GetMetaUrl().
XErrorCode XrdClientConn::fOpenError |
Definition at line 78 of file XrdClientConn.hh.
Referenced by GetOpenError().
|
private |
Definition at line 398 of file XrdClientConn.hh.
Referenced by GetOpenSockFD().
|
private |
Definition at line 369 of file XrdClientConn.hh.
|
private |
Definition at line 361 of file XrdClientConn.hh.
Referenced by GetStreamID(), and SetStreamID().
XrdOucString XrdClientConn::fRedirCGI |
Definition at line 451 of file XrdClientConn.hh.
|
private |
Definition at line 371 of file XrdClientConn.hh.
Referenced by SetRedirHandler().
|
private |
Definition at line 375 of file XrdClientConn.hh.
XrdOucString XrdClientConn::fRedirOpaque |
Definition at line 80 of file XrdClientConn.hh.
|
private |
Definition at line 385 of file XrdClientConn.hh.
Referenced by SetREQDelayedConnectState().
|
private |
Definition at line 384 of file XrdClientConn.hh.
Referenced by SetREQDelayedConnectState().
|
protected |
Definition at line 349 of file XrdClientConn.hh.
Referenced by GetRedirUrl(), and SetRequestedDestHost().
|
private |
Definition at line 383 of file XrdClientConn.hh.
Referenced by SetREQPauseState().
|
private |
Definition at line 378 of file XrdClientConn.hh.
|
private |
Definition at line 380 of file XrdClientConn.hh.
|
private |
Definition at line 382 of file XrdClientConn.hh.
Referenced by SetREQPauseState().
|
private |
Definition at line 387 of file XrdClientConn.hh.
Referenced by GetServerProtocol().
|
private |
Definition at line 388 of file XrdClientConn.hh.
Referenced by GetServerType().
|
staticprivate |
Definition at line 394 of file XrdClientConn.hh.
Referenced by DelSessionIDRepo().
|
staticprivate |
Definition at line 392 of file XrdClientConn.hh.
Referenced by DelSessionIDRepo().
|
protected |
Definition at line 345 of file XrdClientConn.hh.
|
protected |
Definition at line 347 of file XrdClientConn.hh.
Referenced by GetCurrentUrl(), SetRequestedDestHost(), and SetUrl().
|
private |
Definition at line 402 of file XrdClientConn.hh.
|
private |
Definition at line 401 of file XrdClientConn.hh.
Referenced by UnPinCacheBlk().
struct ServerResponseBody_Error XrdClientConn::LastServerError |
Definition at line 230 of file XrdClientConn.hh.
Referenced by ClearLastServerError().
struct ServerResponseHeader XrdClientConn::LastServerResp |
Definition at line 227 of file XrdClientConn.hh.
|
private |
Definition at line 389 of file XrdClientConn.hh.
Referenced by GetSessionID().