#include <XrdCmsClientMan.hh>
| XrdCmsClientMan::XrdCmsClientMan |
( |
char * |
host, |
|
|
int |
port, |
|
|
int |
cw, |
|
|
int |
nr, |
|
|
int |
rw, |
|
|
int |
rd |
|
) |
| |
References Active, XrdNetBufferQ::Alloc(), BuffQ, chkCount, chkVal, dally, Host, HPfx, lastTOut, lastUpdt, Link, XrdSysMutex::Lock(), manMask, maxDelay, minDelay, NetBuff, Next, nrMax, XrdMonCtrCollector::port, Port, RecvCnt, repWait, repWMax, Silent, Suspend, and XrdSysMutex::UnLock().
| XrdCmsClientMan::~XrdCmsClientMan |
( |
| ) |
|
| void XrdCmsClientMan::chkStatus |
( |
| ) |
|
|
private |
References XrdCmsRespQ::Add(), XrdCmsResp::Alloc(), XrdOucErrInfo::getErrInfo(), XrdOucErrInfo::getErrUser(), Host, maxMsgID, XrdSysSemaphore::Post(), XrdCmsRespQ::Purge(), RespQ, Say, XrdOucErrInfo::setErrInfo(), SFS_ERROR, SFS_STALL, SFS_STARTED, and syncResp.
Referenced by XrdCmsFinderRMT::send2Man().
| int XrdCmsClientMan::Hookup |
( |
| ) |
|
|
private |
References Active, XrdLink::Bind(), XrdLink::Close(), XrdInet::Connect(), dally, DEBUG, doDebug, EPNAME, XrdCms::CmsLoginData::HoldTime, Host, XrdSysThread::ID(), lastTOut, Link, XrdSysMutex::Lock(), XrdCmsLogin::Login(), manMask, manMutex, XrdCms::CmsLoginData::Mode, myData, Network, opts, Port, qTime, RecvCnt, repWait, repWMax, Say, SendCnt, Silent, XrdSysTimer::Snooze(), Suspend, XrdSysMutex::UnLock(), XrdCms::CmsLoginData::Version, and XRDNET_NOEMSG.
Referenced by Start().
| int XrdCmsClientMan::isActive |
( |
| ) |
|
|
inline |
| char* XrdCmsClientMan::Name |
( |
| ) |
|
|
inline |
| char* XrdCmsClientMan::NPfx |
( |
| ) |
|
|
inline |
| int XrdCmsClientMan::Receive |
( |
| ) |
|
|
private |
References XrdNetBuffer::BuffSize(), XrdNetBuffer::data, XrdCms::CmsRRHdr::datalen, DEBUG, XrdNetBuffer::dlen, EPNAME, Host, Link, XrdLink::Name(), NetBuff, XrdLink::RecvAll(), RecvCnt, Response, Say, and XrdCms::CmsRRHdr::streamid.
Referenced by Start().
| void XrdCmsClientMan::relayResp |
( |
| ) |
|
|
private |
References XrdNetBufferQ::Alloc(), BuffQ, DEBUG, EPNAME, Host, HPfx, NetBuff, XrdCmsRespQ::Rem(), XrdCmsResp::Reply(), Response, RespQ, and XrdCms::CmsRRHdr::streamid.
Referenced by Start().
| int XrdCmsClientMan::Send |
( |
char * |
msg, |
|
|
int |
mlen = 0 |
|
) |
| |
References Active, XrdLink::Close(), Link, XrdSysMutex::Lock(), myData, XrdLink::Send(), SendCnt, and XrdSysMutex::UnLock().
Referenced by XrdCmsFinderRMT::Forward(), XrdCmsFinderRMT::Inform(), XrdCmsFinderRMT::Prepare(), and XrdCmsFinderRMT::send2Man().
| int XrdCmsClientMan::Send |
( |
const struct iovec * |
iov, |
|
|
int |
iovcnt, |
|
|
int |
iotot = 0 |
|
) |
| |
| static void XrdCmsClientMan::setConfig |
( |
const char * |
cfn | ) |
|
|
inlinestatic |
| static void XrdCmsClientMan::setNetwork |
( |
XrdInet * |
nP | ) |
|
|
inlinestatic |
| void XrdCmsClientMan::setStatus |
( |
| ) |
|
|
private |
| void * XrdCmsClientMan::Start |
( |
| ) |
|
References Active, XrdLink::Close(), dally, Hookup(), Host, HPfx, XrdCms::kYR_status, XrdCms::kYR_waitresp, Link, XrdSysMutex::Lock(), XrdCms::CmsRRHdr::modifier, myData, NetBuff, Receive(), relayResp(), XrdCmsClientMsg::Reply(), Response, XrdCms::CmsRRHdr::rrCode, Say, setStatus(), XrdSysTimer::Snooze(), Suspend, syncResp, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdCmsStartManager().
| int XrdCmsClientMan::Suspended |
( |
| ) |
|
|
inline |
| int XrdCmsClientMan::waitTime |
( |
| ) |
|
|
inline |
| int XrdCmsClientMan::whatsUp |
( |
const char * |
user, |
|
|
const char * |
path |
|
) |
| |
References Active, XrdLink::Close(), EPNAME, HPfx, XrdCmsClientMsg::inQ(), lastTOut, Link, XrdSysMutex::Lock(), maxDelay, minDelay, myData, nrMax, qTime, RecvCnt, repWait, repWMax, Silent, Suspend, TRACE, and XrdSysMutex::UnLock().
Referenced by XrdCmsFinderRMT::send2Man().
| int XrdCmsClientMan::Active |
|
private |
| int XrdCmsClientMan::chkCount |
|
private |
| const int XrdCmsClientMan::chkVal = 256 |
|
staticprivate |
| const char * XrdCmsClientMan::ConfigFN = 0 |
|
staticprivate |
| int XrdCmsClientMan::dally |
|
private |
| char XrdCmsClientMan::doDebug = 0 |
|
static |
| char* XrdCmsClientMan::Host |
|
private |
| char* XrdCmsClientMan::HPfx |
|
private |
| time_t XrdCmsClientMan::lastTOut |
|
private |
| time_t XrdCmsClientMan::lastUpdt |
|
private |
| int XrdCmsClientMan::manMask |
|
private |
| int XrdCmsClientMan::maxDelay |
|
private |
| int XrdCmsClientMan::maxMsgID |
|
private |
| int XrdCmsClientMan::minDelay |
|
private |
| XrdInet * XrdCmsClientMan::Network = 0 |
|
staticprivate |
| int XrdCmsClientMan::nrMax |
|
private |
| int XrdCmsClientMan::Port |
|
private |
| int XrdCmsClientMan::qTime |
|
private |
| int XrdCmsClientMan::RecvCnt |
|
private |
| int XrdCmsClientMan::repWait |
|
private |
| int XrdCmsClientMan::repWMax |
|
private |
| int XrdCmsClientMan::SendCnt |
|
private |
| int XrdCmsClientMan::Silent |
|
private |
| int XrdCmsClientMan::Suspend |
|
private |
The documentation for this class was generated from the following files: