#include <XrdLink.hh>
Inheritance diagram for XrdLink:
Public Member Functions | |
void | Bind () |
void | Bind (pthread_t tid) |
int | Client (char *buff, int blen) |
int | Close (int defer=0) |
void | DoIt () |
int | FDnum () |
int | getIOStats (long long &inbytes, long long &outbytes, int &numstall, int &numtardy) |
XrdProtocol * | getProtocol () |
void | Hold (int lk) |
unsigned int | Inst () |
int | isFlawed () |
int | isInstance (unsigned int inst) |
const char * | Name (sockaddr *ipaddr=0) |
const char * | Host (sockaddr *ipaddr=0) |
int | Peek (char *buff, int blen, int timeout=-1) |
int | Recv (char *buff, int blen) |
int | Recv (char *buff, int blen, int timeout) |
int | RecvAll (char *buff, int blen, int timeout=-1) |
int | Send (const char *buff, int blen) |
int | Send (const struct iovec *iov, int iocnt, int bytes=0) |
int | Send (const struct sfVec *sdP, int sdn) |
void | Serialize () |
int | setEtext (const char *text) |
void | setID (const char *userid, int procid) |
XrdProtocol * | setProtocol (XrdProtocol *pp) |
void | setRef (int cnt) |
void | syncStats (int *ctime=0) |
int | Terminate (const XrdLink *owner, int fdnum, unsigned int inst) |
time_t | timeCon () |
int | UseCnt () |
XrdLink () | |
~XrdLink () | |
Static Public Member Functions | |
static XrdLink * | Alloc (XrdNetPeer &Peer, int opts=0) |
static XrdLink * | fd2link (int fd) |
static XrdLink * | fd2link (int fd, unsigned int inst) |
static XrdLink * | Find (int &curr, XrdLinkMatch *who=0) |
static int | getName (int &curr, char *bname, int blen, XrdLinkMatch *who=0) |
static void | setKWT (int wkSec, int kwSec) |
static int | Setup (int maxfd, int idlewait) |
static int | Stats (char *buff, int blen, int do_sync=0) |
Public Attributes | |
char * | ID |
Static Public Attributes | |
static const int | sfMax = 8 |
static int | sfOK |
Private Member Functions | |
void | Reset () |
int | sendData (const char *Buff, int Blen) |
Private Attributes | |
long long | BytesIn |
long long | BytesInTot |
long long | BytesOut |
long long | BytesOutTot |
int | stallCnt |
int | stallCntTot |
int | tardyCnt |
int | tardyCntTot |
int | SfIntr |
sockaddr | InetAddr |
char | Uname [24] |
char | Lname [232] |
char * | HostName |
int | HNlen |
pthread_t | TID |
XrdSysMutex | opMutex |
XrdSysMutex | rdMutex |
XrdSysMutex | wrMutex |
XrdSysSemaphore | IOSemaphore |
XrdSysCondVar * | KillcvP |
XrdLink * | Next |
XrdNetBuffer * | udpbuff |
XrdProtocol * | Protocol |
XrdProtocol * | ProtoAlt |
XrdPoll * | Poller |
pollfd * | PollEnt |
char * | Etext |
int | FD |
unsigned int | Instance |
time_t | conTime |
int | InUse |
int | doPost |
char | LockReads |
char | KeepFD |
char | isEnabled |
char | isIdle |
char | inQ |
char | tBound |
char | KillCnt |
Static Private Attributes | |
static XrdSysMutex | LTMutex |
static XrdLink ** | LinkTab |
static char * | LinkBat |
static unsigned int | LinkAlloc |
static int | LTLast |
static const char * | TraceID |
static int | devNull |
static short | killWait |
static short | waitKill |
static long long | LinkBytesIn |
static long long | LinkBytesOut |
static long long | LinkConTime |
static long long | LinkCountTot |
static int | LinkCount |
static int | LinkCountMax |
static int | LinkTimeOuts |
static int | LinkStalls |
static int | LinkSfIntr |
static XrdSysMutex | statsMutex |
static const char | KillMax = 60 |
static const char | KillMsk = 0x7f |
static const char | KillXwt = 0x80 |
Friends | |
class | XrdLinkScan |
class | XrdPoll |
class | XrdPollPoll |
class | XrdPollDev |
class | XrdPollE |
Classes | |
struct | sfVec |
Definition at line 41 of file XrdLink.hh.
XrdLink::XrdLink | ( | ) |
XrdLink::~XrdLink | ( | ) | [inline] |
Definition at line 158 of file XrdLink.hh.
XrdLink * XrdLink::Alloc | ( | XrdNetPeer & | Peer, | |
int | opts = 0 | |||
) | [static] |
Definition at line 175 of file XrdLink.cc.
References XrdJob::Comment, XrdSysError::Emsg(), FD, XrdNetPeer::fd, free(), XrdNetDNS::getHostName(), HNlen, HostName, i, ID, XrdNetPeer::InetAddr, InetAddr, XrdNetPeer::InetBuff, XrdNetPeer::InetName, Instance, KeepFD, LinkAlloc, LinkBat, LinkCount, LinkCountMax, LinkCountTot, LinkTab, Lname, XrdSysMutex::Lock(), LockReads, LTLast, LTMutex, Reset(), sprintf(), statsMutex, strlcpy(), XrdNet::Trim(), udpbuff, XrdSysMutex::UnLock(), XRDLINK_NOCLOSE, XRDLINK_RDLOCK, XRDLINK_USED, and XrdNetTCP.
Referenced by XrdProofdProofServMgr::Accept(), XrdInet::Accept(), and XrdInet::Connect().
void XrdLink::Bind | ( | ) |
Definition at line 269 of file XrdLink.cc.
References XrdSysThread::ID(), XrdSysThread::Same(), XrdSysThread::Signal(), tBound, and TID.
Referenced by Close(), XrdCmsProtocol::Dispatch(), and XrdCmsClientMan::Hookup().
void XrdLink::Bind | ( | pthread_t | tid | ) |
int XrdLink::Client | ( | char * | buff, | |
int | blen | |||
) |
Definition at line 293 of file XrdLink.cc.
References HNlen, HostName, ID, Lname, and strcpy().
Referenced by XrdXrootdAdmin::do_Lsd(), and getName().
int XrdLink::Close | ( | int | defer = 0 |
) |
Definition at line 313 of file XrdLink.cc.
References Bind(), close, DEBUG, XrdPoll::Detach(), devNull, XrdSysError::Emsg(), Etext, FD, free(), ID, Instance, InUse, KeepFD, KillcvP, LinkBat, XrdSysMutex::Lock(), LTLast, LTMutex, opMutex, Poller, ProtoAlt, Protocol, XrdProtocol::Recycle(), XrdNetBuffer::Recycle(), Serialize(), XrdSysCondVar::Signal(), syncStats(), TRACEI, udpbuff, XrdSysCondVar::UnLock(), XrdSysMutex::UnLock(), and XRDLINK_FREE.
Referenced by XrdXrootdProtocol::Cleanup(), XrdCmsNode::Disc(), XrdCmsNode::do_Disc(), DoIt(), XrdProofdResponse::LinkSend(), XrdCmsProtocol::Pander(), XrdCmsClientMan::Send(), XrdCmsSupervisor::Start(), XrdCmsClientMan::Start(), XrdCmsClientMan::whatsUp(), and XrdCmsClientMan::~XrdCmsClientMan().
void XrdLink::DoIt | ( | ) | [virtual] |
Implements XrdJob.
Definition at line 407 of file XrdLink.cc.
References XrdScheduler::canStick(), Close(), EINPROGRESS, XrdSysError::Emsg(), XrdPoll::Enable(), ID, Poller, XrdProtocol::Process(), Protocol, and XrdSched.
int XrdLink::FDnum | ( | ) | [inline] |
Definition at line 61 of file XrdLink.hh.
References FD.
Referenced by XrdXrootdProtocol::do_Bind(), XrdXrootdProtocol::do_Login(), XrdXrootdProtocol::do_Prepare(), XrdRootdProtocol::Match(), XrdProofdProtocol::Process2(), and XrdProofdResponse::Set().
static XrdLink* XrdLink::fd2link | ( | int | fd | ) | [inline, static] |
Definition at line 63 of file XrdLink.hh.
References LinkBat, LinkTab, and LTLast.
Referenced by XrdXrootdProtocol::do_Bind(), XrdXrootdResponse::Send(), and Terminate().
static XrdLink* XrdLink::fd2link | ( | int | fd, | |
unsigned int | inst | |||
) | [inline, static] |
XrdLink * XrdLink::Find | ( | int & | curr, | |
XrdLinkMatch * | who = 0 | |||
) | [static] |
Definition at line 440 of file XrdLink.cc.
References HNlen, HostName, i, ID, if(), Instance, LinkBat, LinkTab, Lname, XrdSysMutex::Lock(), LTLast, LTMutex, XrdLinkMatch::Match(), setRef(), and XrdSysMutex::UnLock().
Referenced by XrdXrootdAdmin::do_Lsd(), and XrdXrootdAdmin::sendResp().
int XrdLink::getIOStats | ( | long long & | inbytes, | |
long long & | outbytes, | |||
int & | numstall, | |||
int & | numtardy | |||
) | [inline] |
Definition at line 77 of file XrdLink.hh.
References BytesIn, BytesInTot, BytesOut, BytesOutTot, InUse, stallCnt, stallCntTot, tardyCnt, and tardyCntTot.
Referenced by XrdXrootdAdmin::do_Lsd().
int XrdLink::getName | ( | int & | curr, | |
char * | bname, | |||
int | blen, | |||
XrdLinkMatch * | who = 0 | |||
) | [static] |
Definition at line 486 of file XrdLink.cc.
References Client(), HNlen, HostName, i, ID, if(), LinkBat, LinkTab, Lname, XrdSysMutex::Lock(), LTLast, LTMutex, XrdLinkMatch::Match(), and XrdSysMutex::UnLock().
Referenced by XrdXrootdAdmin::do_Lsc().
XrdProtocol* XrdLink::getProtocol | ( | ) | [inline] |
Definition at line 88 of file XrdLink.hh.
References Protocol.
Referenced by XrdXrootdAdmin::do_Lsd().
void XrdLink::Hold | ( | int | lk | ) | [inline] |
Definition at line 90 of file XrdLink.hh.
References XrdSysMutex::Lock(), opMutex, and XrdSysMutex::UnLock().
unsigned int XrdLink::Inst | ( | ) | [inline] |
Definition at line 94 of file XrdLink.hh.
References Instance.
Referenced by XrdXrootdJob2Do::addClient(), XrdXrootdAioReq::Alloc(), XrdXrootdJob2Do::delClient(), and XrdXrootdProtocol::do_Login().
int XrdLink::isFlawed | ( | ) | [inline] |
int XrdLink::isInstance | ( | unsigned int | inst | ) | [inline] |
Definition at line 98 of file XrdLink.hh.
Referenced by XrdXrootdAioReq::endRead(), XrdXrootdAioReq::endWrite(), XrdXrootdJob2Do::lstClient(), XrdXrootdResponse::Send(), and XrdXrootdJob2Do::verClient().
const char* XrdLink::Name | ( | sockaddr * | ipaddr = 0 |
) | [inline] |
Definition at line 101 of file XrdLink.hh.
References InetAddr, and Lname.
Referenced by XrdCmsCluster::Add(), XrdCmsManager::Add(), XrdCmsProtocol::Admit(), XrdCmsJob::Alloc(), XrdCmsProtocol::ConfigCheck(), XrdCmsProtocol::Dispatch(), XrdXrootdProtocol::do_Auth(), XrdCmsNode::do_Disc(), XrdRootdProtocol::Match(), XrdCmsClientMan::Receive(), and XrdCmsNode::setName().
const char* XrdLink::Host | ( | sockaddr * | ipaddr = 0 |
) | [inline] |
Definition at line 106 of file XrdLink.hh.
References HostName, and InetAddr.
Referenced by XrdXrootdProtocol::do_Auth(), XrdXrootdProtocol::do_Bind(), XrdXrootdProtocol::do_Login(), XrdCmsNode::isNode(), XrdProofdProtocol::Match(), XrdXrootdProtocol::Match(), and XrdCmsNode::setName().
int XrdLink::Peek | ( | char * | buff, | |
int | blen, | |||
int | timeout = -1 | |||
) |
Definition at line 520 of file XrdLink.cc.
References XrdSysError::Emsg(), FD, ID, int, isIdle, XrdSysMutexHelper::Lock(), LockReads, poll(), XrdPoll::Poll2Text(), POLLIN, POLLRDNORM, rdMutex, pollfd::revents, and ssize_t.
Referenced by XrdRootdProtocol::Match(), XrdProofdProtocol::Match(), XrdXrootdProtocol::Match(), and XrdCmsProtocol::Match().
int XrdLink::Recv | ( | char * | buff, | |
int | blen | |||
) |
Definition at line 564 of file XrdLink.cc.
References XrdSysError::Emsg(), FD, ID, int, isIdle, XrdSysMutex::Lock(), LockReads, rdMutex, read, ssize_t, and XrdSysMutex::UnLock().
Referenced by XrdXrootdProtocol::do_WriteNone(), XrdProofdProtocol::GetData(), XrdXrootdProtocol::getData(), XrdProofdProtocol::Match(), and XrdXrootdProtocol::Match().
int XrdLink::Recv | ( | char * | buff, | |
int | blen, | |||
int | timeout | |||
) |
Definition at line 583 of file XrdLink.cc.
References BytesIn, DEBUG, XrdSysError::Emsg(), FD, ID, int, isIdle, XrdSysMutexHelper::Lock(), LockReads, poll(), XrdPoll::Poll2Text(), POLLIN, POLLRDNORM, rdMutex, pollfd::revents, ssize_t, stallCnt, tardyCnt, and TRACEI.
int XrdLink::RecvAll | ( | char * | buff, | |
int | blen, | |||
int | timeout = -1 | |||
) |
Definition at line 636 of file XrdLink.cc.
References DEBUG, XrdSysError::Emsg(), ETIMEDOUT, FD, ID, isIdle, XrdSysMutex::Lock(), LockReads, poll(), XrdPoll::Poll2Text(), POLLIN, POLLRDNORM, rdMutex, pollfd::revents, ssize_t, TRACEI, and XrdSysMutex::UnLock().
Referenced by XrdCmsProtocol::Dispatch(), and XrdCmsClientMan::Receive().
int XrdLink::Send | ( | const char * | buff, | |
int | blen | |||
) |
Definition at line 676 of file XrdLink.cc.
References BytesOut, XrdSysError::Emsg(), FD, ID, isIdle, XrdSysMutex::Lock(), ssize_t, XrdSysMutex::UnLock(), write, and wrMutex.
Referenced by XrdCmsClientMan::chkStatus(), XrdCmsProtocol::Dispatch(), XrdCmsNode::do_Disc(), XrdCmsNode::do_Ping(), XrdCmsNode::do_Select(), XrdCmsNode::do_Space(), XrdCmsNode::do_State(), XrdCmsNode::do_StatFS(), XrdCmsNode::do_Stats(), XrdProofdResponse::LinkSend(), XrdProofdProtocol::Match(), XrdXrootdProtocol::Match(), XrdXrootdResponse::Push(), XrdCmsProtocol::Reply_Delay(), XrdCmsProtocol::Reply_Error(), XrdCmsNode::Report_Usage(), XrdCmsClientMan::Send(), XrdCmsNode::Send(), XrdXrootdResponse::Send(), XrdCmsCluster::sendAList(), XrdXrootdAdmin::sendResp(), and XrdCmsState::sendState().
int XrdLink::Send | ( | const struct iovec * | iov, | |
int | iocnt, | |||
int | bytes = 0 | |||
) |
Definition at line 705 of file XrdLink.cc.
References BytesOut, XrdSysError::Emsg(), FD, i, ID, iovec::iov_base, iovec::iov_len, isIdle, XrdSysMutex::Lock(), n, ssize_t, XrdSysMutex::UnLock(), write, writev, and wrMutex.
int XrdLink::Send | ( | const struct sfVec * | sdP, | |
int | sdn | |||
) |
Definition at line 754 of file XrdLink.cc.
References XrdLink::sfVec::buffer, XrdSysError::Emsg(), XrdLink::sfVec::fdnum, i, ID, XrdLink::sfVec::offset, XrdLink::sfVec::sendsz, sfMax, size_t, and ssize_t.
void XrdLink::Serialize | ( | ) |
Definition at line 989 of file XrdLink.cc.
References DEBUG, doPost, InUse, IOSemaphore, XrdSysMutex::Lock(), opMutex, TRACEI, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by Close(), XrdXrootdProtocol::do_Close(), XrdXrootdProtocol::do_Open(), XrdCmsProtocol::Process(), and Terminate().
int XrdLink::setEtext | ( | const char * | text | ) |
Definition at line 912 of file XrdLink.cc.
References Etext, free(), XrdSysMutex::Lock(), opMutex, and XrdSysMutex::UnLock().
Referenced by XrdCmsNode::Disc(), XrdXrootdProtocol::do_Write(), XrdXrootdProtocol::do_WriteNone(), XrdProofdProtocol::GetData(), XrdXrootdProtocol::getData(), XrdProofdResponse::LinkSend(), XrdCmsProtocol::Login_Failed(), XrdRootdProtocol::Match(), XrdProofdProtocol::Match(), XrdXrootdProtocol::Match(), XrdCmsProtocol::Match(), XrdProtLoad::Process(), XrdXrootdProtocol::Process(), XrdCmsProtocol::Process(), XrdProofdProtocol::Process(), XrdXrootdProtocol::Process2(), XrdXrootdResponse::Push(), and XrdXrootdResponse::Send().
void XrdLink::setID | ( | const char * | userid, | |
int | procid | |||
) |
Definition at line 925 of file XrdLink.cc.
References XrdJob::Comment, FD, ID, snprintf, and Uname.
Referenced by XrdCmsManager::Add(), XrdCmsProtocol::Admit(), XrdXrootdProtocol::do_Bind(), and XrdXrootdProtocol::do_Login().
void XrdLink::setKWT | ( | int | wkSec, | |
int | kwSec | |||
) | [static] |
Definition at line 1009 of file XrdLink.cc.
References killWait, and waitKill.
Referenced by XrdConfig::xtmo().
XrdProtocol * XrdLink::setProtocol | ( | XrdProtocol * | pp | ) |
Definition at line 1019 of file XrdLink.cc.
References XrdSysMutex::Lock(), opMutex, Protocol, and XrdSysMutex::UnLock().
Referenced by mainAccept(), mainAdmin(), XrdProtLoad::Process(), and XrdCmsSupervisor::Start().
void XrdLink::setRef | ( | int | cnt | ) |
Definition at line 1035 of file XrdLink.cc.
References DEBUG, doPost, XrdSysError::Emsg(), ID, InUse, IOSemaphore, XrdSysMutex::Lock(), opMutex, XrdSysSemaphore::Post(), TRACEI, and XrdSysMutex::UnLock().
Referenced by XrdXrootdAioReq::Alloc(), XrdCmsJob::Alloc(), XrdXrootdAdmin::do_Lsd(), XrdXrootdProtocol::do_Offload(), XrdXrootdProtocol::do_OffloadIO(), Find(), XrdXrootdProtocol::operator=(), XrdXrootdAioReq::Recycle(), XrdXrootdProtocol::Recycle(), XrdCmsJob::Recycle(), and XrdXrootdResponse::Send().
int XrdLink::Setup | ( | int | maxfd, | |
int | idlewait | |||
) | [static] |
Definition at line 945 of file XrdLink.cc.
References DEBUG, devNull, XrdSysError::Emsg(), F_SETFD, fcntl(), FD_CLOEXEC, LinkAlloc, LinkBat, LinkTab, ls(), malloc(), XrdScheduler::Schedule(), TRACE, XRDLINK_FREE, XrdLinkScan, and XrdSched.
Referenced by XrdConfig::Setup().
int XrdLink::Stats | ( | char * | buff, | |
int | blen, | |||
int | do_sync = 0 | |||
) | [static] |
Definition at line 1063 of file XrdLink.cc.
References LinkBat, LinkBytesIn, LinkBytesOut, LinkConTime, LinkCount, LinkCountMax, LinkCountTot, LinkSfIntr, LinkStalls, LinkTab, LinkTimeOuts, XrdSysMutex::Lock(), LTLast, LTMutex, snprintf, statsMutex, syncStats(), XrdSysMutex::UnLock(), and XRDLINK_USED.
Referenced by XrdStats::Stats().
void XrdLink::syncStats | ( | int * | ctime = 0 |
) |
Definition at line 1098 of file XrdLink.cc.
References BytesIn, BytesInTot, BytesOut, BytesOutTot, conTime, LinkBytesIn, LinkBytesOut, LinkConTime, LinkCount, LinkSfIntr, LinkStalls, LinkTimeOuts, XrdSysMutex::Lock(), opMutex, Protocol, rdMutex, SfIntr, stallCnt, stallCntTot, XrdProtocol::Stats(), statsMutex, tardyCnt, tardyCntTot, XrdSysMutex::UnLock(), and wrMutex.
int XrdLink::Terminate | ( | const XrdLink * | owner, | |
int | fdnum, | |||
unsigned int | inst | |||
) |
Definition at line 1138 of file XrdLink.cc.
References DEBUG, XrdPoll::Disable(), FD, fd2link(), ID, Instance, InUse, isEnabled, KillCnt, KillcvP, KillMax, KillMsk, killWait, KillXwt, Lname, XrdSysMutex::Lock(), XrdSysCondVar::Lock(), opMutex, Poller, Protocol, Serialize(), snprintf, TRACEI, XrdSysCondVar::UnLock(), XrdSysMutex::UnLock(), XrdSysCondVar::Wait(), and waitKill.
Referenced by XrdXrootdProtocol::do_Endsess().
time_t XrdLink::timeCon | ( | ) | [inline] |
Definition at line 153 of file XrdLink.hh.
References conTime.
Referenced by XrdXrootdAdmin::do_Lsd().
int XrdLink::UseCnt | ( | ) | [inline] |
Definition at line 155 of file XrdLink.hh.
References InUse.
Referenced by XrdXrootdProtocol::do_ReadAll(), and XrdXrootdProtocol::do_Write().
void XrdLink::Reset | ( | ) | [private] |
Definition at line 137 of file XrdLink.cc.
References BytesIn, BytesInTot, BytesOut, BytesOutTot, XrdJob::Comment, conTime, doPost, Etext, FD, free(), HostName, ID, inQ, Instance, InUse, isEnabled, isIdle, KeepFD, KillCnt, KillcvP, Lname, LockReads, Next, PollEnt, Poller, ProtoAlt, Protocol, stallCnt, stallCntTot, tardyCnt, tardyCntTot, tBound, udpbuff, and Uname.
int XrdLink::sendData | ( | const char * | Buff, | |
int | Blen | |||
) | [private] |
friend class XrdLinkScan [friend] |
friend class XrdPoll [friend] |
Definition at line 45 of file XrdLink.hh.
friend class XrdPollPoll [friend] |
Definition at line 46 of file XrdLink.hh.
friend class XrdPollDev [friend] |
Definition at line 47 of file XrdLink.hh.
friend class XrdPollE [friend] |
Definition at line 48 of file XrdLink.hh.
char* XrdLink::ID |
Definition at line 92 of file XrdLink.hh.
Referenced by XrdCmsCluster::Add(), XrdXrootdProtocol::aio_Error(), XrdXrootdAio::Alloc(), Alloc(), XrdProofdClient::Broadcast(), Client(), Close(), XrdPoll::Detach(), XrdXrootdProtocol::do_Auth(), XrdXrootdProtocol::do_Chmod(), XrdXrootdProtocol::do_Dirlist(), XrdXrootdProtocol::do_Locate(), XrdXrootdProtocol::do_Login(), XrdXrootdProtocol::do_Mkdir(), XrdXrootdProtocol::do_Mv(), XrdXrootdProtocol::do_Open(), XrdXrootdProtocol::do_Prepare(), XrdXrootdProtocol::do_Qfh(), XrdXrootdProtocol::do_Qopaque(), XrdXrootdProtocol::do_Qspace(), XrdXrootdProtocol::do_Qxattr(), XrdXrootdProtocol::do_Rm(), XrdXrootdProtocol::do_Rmdir(), XrdXrootdProtocol::do_Set(), XrdXrootdProtocol::do_Set_Mon(), XrdXrootdProtocol::do_Stat(), XrdXrootdProtocol::do_Statx(), XrdXrootdProtocol::do_Truncate(), DoIt(), XrdXrootdAioReq::endWrite(), Find(), getName(), XrdLinkScan::idleScan(), XrdXrootdJob2Do::lstClient(), Peek(), Recv(), RecvAll(), XrdProtLoad::Recycle(), XrdCmsProtocol::Recycle(), XrdXrootdProtocol::Recycle(), Reset(), XrdXrootdAioReq::Scuttle(), Send(), XrdXrootdAdmin::sendResp(), XrdXrootdJob2Do::sendResult(), XrdProofdProtocol::SetAuthEntity(), setID(), XrdCmsNode::setName(), setRef(), XrdProofdResponse::SetTraceID(), XrdProofdProtocol::SetTraceID(), and Terminate().
const int XrdLink::sfMax = 8 [static] |
int XrdLink::sfOK [static] |
Definition at line 129 of file XrdLink.hh.
Referenced by XrdXrootdProtocol::do_Open(), and XrdConfig::Setup().
XrdSysMutex XrdLink::LTMutex [static, private] |
Definition at line 165 of file XrdLink.hh.
Referenced by Alloc(), Close(), Find(), getName(), XrdLinkScan::idleScan(), and Stats().
XrdLink ** XrdLink::LinkTab [static, private] |
Definition at line 166 of file XrdLink.hh.
Referenced by Alloc(), fd2link(), Find(), getName(), XrdLinkScan::idleScan(), Setup(), and Stats().
char * XrdLink::LinkBat [static, private] |
Definition at line 167 of file XrdLink.hh.
Referenced by Alloc(), Close(), fd2link(), Find(), getName(), XrdLinkScan::idleScan(), Setup(), and Stats().
unsigned int XrdLink::LinkAlloc [static, private] |
int XrdLink::LTLast [static, private] |
Definition at line 169 of file XrdLink.hh.
Referenced by Alloc(), Close(), fd2link(), Find(), getName(), XrdLinkScan::idleScan(), and Stats().
const char * XrdLink::TraceID [static, private] |
Definition at line 170 of file XrdLink.hh.
int XrdLink::devNull [static, private] |
short XrdLink::killWait [static, private] |
short XrdLink::waitKill [static, private] |
long long XrdLink::LinkBytesIn [static, private] |
long long XrdLink::LinkBytesOut [static, private] |
long long XrdLink::LinkConTime [static, private] |
long long XrdLink::LinkCountTot [static, private] |
int XrdLink::LinkCount [static, private] |
int XrdLink::LinkCountMax [static, private] |
int XrdLink::LinkTimeOuts [static, private] |
int XrdLink::LinkStalls [static, private] |
int XrdLink::LinkSfIntr [static, private] |
long long XrdLink::BytesIn [private] |
Definition at line 186 of file XrdLink.hh.
Referenced by getIOStats(), Recv(), Reset(), and syncStats().
long long XrdLink::BytesInTot [private] |
long long XrdLink::BytesOut [private] |
Definition at line 188 of file XrdLink.hh.
Referenced by getIOStats(), Reset(), Send(), and syncStats().
long long XrdLink::BytesOutTot [private] |
int XrdLink::stallCnt [private] |
Definition at line 190 of file XrdLink.hh.
Referenced by getIOStats(), Recv(), Reset(), and syncStats().
int XrdLink::stallCntTot [private] |
int XrdLink::tardyCnt [private] |
Definition at line 192 of file XrdLink.hh.
Referenced by getIOStats(), Recv(), Reset(), and syncStats().
int XrdLink::tardyCntTot [private] |
int XrdLink::SfIntr [private] |
XrdSysMutex XrdLink::statsMutex [static, private] |
struct sockaddr XrdLink::InetAddr [private] |
char XrdLink::Uname[24] [private] |
char XrdLink::Lname[232] [private] |
Definition at line 201 of file XrdLink.hh.
Referenced by Alloc(), Client(), Find(), getName(), Name(), Reset(), and Terminate().
char* XrdLink::HostName [private] |
int XrdLink::HNlen [private] |
pthread_t XrdLink::TID [private] |
XrdSysMutex XrdLink::opMutex [private] |
Definition at line 206 of file XrdLink.hh.
Referenced by Close(), Hold(), XrdLinkScan::idleScan(), Serialize(), setEtext(), setProtocol(), setRef(), syncStats(), and Terminate().
XrdSysMutex XrdLink::rdMutex [private] |
Definition at line 207 of file XrdLink.hh.
Referenced by Peek(), Recv(), RecvAll(), and syncStats().
XrdSysMutex XrdLink::wrMutex [private] |
XrdSysSemaphore XrdLink::IOSemaphore [private] |
XrdSysCondVar* XrdLink::KillcvP [private] |
XrdLink* XrdLink::Next [private] |
XrdNetBuffer* XrdLink::udpbuff [private] |
XrdProtocol* XrdLink::Protocol [private] |
Definition at line 213 of file XrdLink.hh.
Referenced by Close(), DoIt(), XrdPoll::Finish(), getProtocol(), Reset(), setProtocol(), syncStats(), and Terminate().
XrdProtocol* XrdLink::ProtoAlt [private] |
XrdPoll* XrdLink::Poller [private] |
Definition at line 215 of file XrdLink.hh.
Referenced by XrdPoll::Attach(), Close(), XrdPoll::Detach(), DoIt(), XrdLinkScan::idleScan(), Reset(), and Terminate().
struct pollfd* XrdLink::PollEnt [private] |
char* XrdLink::Etext [private] |
Definition at line 217 of file XrdLink.hh.
Referenced by Close(), XrdPoll::Finish(), isFlawed(), Reset(), setEtext(), and XrdLink().
int XrdLink::FD [private] |
Definition at line 218 of file XrdLink.hh.
Referenced by Alloc(), XrdPoll::Attach(), Close(), XrdPoll::Detach(), FDnum(), XrdPoll::Finish(), isInstance(), Peek(), Recv(), RecvAll(), Reset(), Send(), sendData(), setID(), and Terminate().
unsigned int XrdLink::Instance [private] |
Definition at line 219 of file XrdLink.hh.
Referenced by Alloc(), Close(), fd2link(), Find(), Inst(), isInstance(), Reset(), and Terminate().
time_t XrdLink::conTime [private] |
int XrdLink::InUse [private] |
Definition at line 221 of file XrdLink.hh.
Referenced by Close(), getIOStats(), XrdLinkScan::idleScan(), Reset(), Serialize(), setRef(), Terminate(), and UseCnt().
int XrdLink::doPost [private] |
char XrdLink::LockReads [private] |
char XrdLink::KeepFD [private] |
char XrdLink::isEnabled [private] |
Definition at line 225 of file XrdLink.hh.
Referenced by XrdLinkScan::idleScan(), Reset(), and Terminate().
char XrdLink::isIdle [private] |
Definition at line 226 of file XrdLink.hh.
Referenced by XrdLinkScan::idleScan(), Peek(), Recv(), RecvAll(), Reset(), and Send().
char XrdLink::inQ [private] |
char XrdLink::tBound [private] |
char XrdLink::KillCnt [private] |
const char XrdLink::KillMax = 60 [static, private] |
const char XrdLink::KillMsk = 0x7f [static, private] |
const char XrdLink::KillXwt = 0x80 [static, private] |