XrdLink Class Reference

#include <XrdLink.hh>

Inheritance diagram for XrdLink:

XrdJob List of all members.

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)
XrdProtocolgetProtocol ()
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)
XrdProtocolsetProtocol (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 XrdLinkAlloc (XrdNetPeer &Peer, int opts=0)
static XrdLinkfd2link (int fd)
static XrdLinkfd2link (int fd, unsigned int inst)
static XrdLinkFind (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
XrdSysCondVarKillcvP
XrdLinkNext
XrdNetBufferudpbuff
XrdProtocolProtocol
XrdProtocolProtoAlt
XrdPollPoller
pollfdPollEnt
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

Detailed Description

Definition at line 41 of file XrdLink.hh.


Constructor & Destructor Documentation

XrdLink::XrdLink (  ) 

Definition at line 130 of file XrdLink.cc.

References Etext, HostName, and Reset().

XrdLink::~XrdLink (  )  [inline]

Definition at line 158 of file XrdLink.hh.


Member Function Documentation

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  ) 

Definition at line 258 of file XrdLink.cc.

References tBound, and 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]

Definition at line 68 of file XrdLink.hh.

References Instance, LinkBat, LinkTab, and LTLast.

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]

Definition at line 96 of file XrdLink.hh.

References Etext.

Referenced by XrdProtLoad::Process().

int XrdLink::isInstance ( unsigned int  inst  )  [inline]

Definition at line 98 of file XrdLink.hh.

References FD, and Instance.

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.

Referenced by Close(), and Stats().

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.

Referenced by Alloc(), and XrdLink().

int XrdLink::sendData ( const char *  Buff,
int  Blen 
) [private]

Definition at line 889 of file XrdLink.cc.

References FD, ssize_t, and write.


Friends And Related Function Documentation

friend class XrdLinkScan [friend]

Definition at line 44 of file XrdLink.hh.

Referenced by Setup().

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.


Member Data Documentation

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]

Definition at line 127 of file XrdLink.hh.

Referenced by Send().

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]

Definition at line 168 of file XrdLink.hh.

Referenced by Alloc(), and Setup().

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]

Definition at line 171 of file XrdLink.hh.

Referenced by Close(), and Setup().

short XrdLink::killWait [static, private]

Definition at line 172 of file XrdLink.hh.

Referenced by setKWT(), and Terminate().

short XrdLink::waitKill [static, private]

Definition at line 173 of file XrdLink.hh.

Referenced by setKWT(), and Terminate().

long long XrdLink::LinkBytesIn [static, private]

Definition at line 177 of file XrdLink.hh.

Referenced by Stats(), and syncStats().

long long XrdLink::LinkBytesOut [static, private]

Definition at line 178 of file XrdLink.hh.

Referenced by Stats(), and syncStats().

long long XrdLink::LinkConTime [static, private]

Definition at line 179 of file XrdLink.hh.

Referenced by Stats(), and syncStats().

long long XrdLink::LinkCountTot [static, private]

Definition at line 180 of file XrdLink.hh.

Referenced by Alloc(), and Stats().

int XrdLink::LinkCount [static, private]

Definition at line 181 of file XrdLink.hh.

Referenced by Alloc(), Stats(), and syncStats().

int XrdLink::LinkCountMax [static, private]

Definition at line 182 of file XrdLink.hh.

Referenced by Alloc(), and Stats().

int XrdLink::LinkTimeOuts [static, private]

Definition at line 183 of file XrdLink.hh.

Referenced by Stats(), and syncStats().

int XrdLink::LinkStalls [static, private]

Definition at line 184 of file XrdLink.hh.

Referenced by Stats(), and syncStats().

int XrdLink::LinkSfIntr [static, private]

Definition at line 185 of file XrdLink.hh.

Referenced by Stats(), and syncStats().

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]

Definition at line 187 of file XrdLink.hh.

Referenced by getIOStats(), Reset(), and syncStats().

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]

Definition at line 189 of file XrdLink.hh.

Referenced by getIOStats(), Reset(), and syncStats().

int XrdLink::stallCnt [private]

Definition at line 190 of file XrdLink.hh.

Referenced by getIOStats(), Recv(), Reset(), and syncStats().

int XrdLink::stallCntTot [private]

Definition at line 191 of file XrdLink.hh.

Referenced by getIOStats(), Reset(), and syncStats().

int XrdLink::tardyCnt [private]

Definition at line 192 of file XrdLink.hh.

Referenced by getIOStats(), Recv(), Reset(), and syncStats().

int XrdLink::tardyCntTot [private]

Definition at line 193 of file XrdLink.hh.

Referenced by getIOStats(), Reset(), and syncStats().

int XrdLink::SfIntr [private]

Definition at line 194 of file XrdLink.hh.

Referenced by syncStats().

XrdSysMutex XrdLink::statsMutex [static, private]

Definition at line 195 of file XrdLink.hh.

Referenced by Alloc(), Stats(), and syncStats().

struct sockaddr XrdLink::InetAddr [private]

Definition at line 199 of file XrdLink.hh.

Referenced by Alloc(), Host(), and Name().

char XrdLink::Uname[24] [private]

Definition at line 200 of file XrdLink.hh.

Referenced by Reset(), and setID().

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]

Definition at line 202 of file XrdLink.hh.

Referenced by Alloc(), Client(), Find(), getName(), Host(), Reset(), and XrdLink().

int XrdLink::HNlen [private]

Definition at line 203 of file XrdLink.hh.

Referenced by Alloc(), Client(), Find(), and getName().

pthread_t XrdLink::TID [private]

Definition at line 204 of file XrdLink.hh.

Referenced by Bind().

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]

Definition at line 208 of file XrdLink.hh.

Referenced by Send(), and syncStats().

XrdSysSemaphore XrdLink::IOSemaphore [private]

Definition at line 209 of file XrdLink.hh.

Referenced by Serialize(), and setRef().

XrdSysCondVar* XrdLink::KillcvP [private]

Definition at line 210 of file XrdLink.hh.

Referenced by Close(), Reset(), and Terminate().

XrdLink* XrdLink::Next [private]

Definition at line 211 of file XrdLink.hh.

Referenced by Reset().

XrdNetBuffer* XrdLink::udpbuff [private]

Definition at line 212 of file XrdLink.hh.

Referenced by Alloc(), Close(), and Reset().

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]

Definition at line 214 of file XrdLink.hh.

Referenced by Close(), XrdPoll::Finish(), and Reset().

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]

Definition at line 216 of file XrdLink.hh.

Referenced by Reset().

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]

Definition at line 220 of file XrdLink.hh.

Referenced by Reset(), syncStats(), and timeCon().

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]

Definition at line 222 of file XrdLink.hh.

Referenced by Reset(), Serialize(), and setRef().

char XrdLink::LockReads [private]

Definition at line 223 of file XrdLink.hh.

Referenced by Alloc(), Peek(), Recv(), RecvAll(), and Reset().

char XrdLink::KeepFD [private]

Definition at line 224 of file XrdLink.hh.

Referenced by Alloc(), Close(), and Reset().

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]

Definition at line 227 of file XrdLink.hh.

Referenced by Reset().

char XrdLink::tBound [private]

Definition at line 228 of file XrdLink.hh.

Referenced by Bind(), and Reset().

char XrdLink::KillCnt [private]

Definition at line 229 of file XrdLink.hh.

Referenced by Reset(), and Terminate().

const char XrdLink::KillMax = 60 [static, private]

Definition at line 230 of file XrdLink.hh.

Referenced by Terminate().

const char XrdLink::KillMsk = 0x7f [static, private]

Definition at line 231 of file XrdLink.hh.

Referenced by Terminate().

const char XrdLink::KillXwt = 0x80 [static, private]

Definition at line 232 of file XrdLink.hh.

Referenced by Terminate().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:34 2011 for ROOT_528-00b_version by  doxygen 1.5.1