1 #ifndef __XRD_LINKCTL_H__
2 #define __XRD_LINKCTL_H__
58 #define XRDLINK_RDLOCK 0x0001
59 #define XRDLINK_NOCLOSE 0x0002
73 {
if (fd < 0) fd = -fd;
88 {
if (fd < 0) fd = -fd;
104 {
if (fd < 0) fd = -fd;
160 static void setKWT(
int wkSec,
int kwSec);
172 static int Setup(
int maxfds,
int idlewt);
184 static void Unhook(
int fd);
static void Unhook(int fd)
Unhook a link from the active table of links.
static XrdLink * fd2link(int fd)
Definition: XrdLinkCtl.hh:72
static XrdSysMutex LTMutex
Definition: XrdLinkCtl.hh:202
static XrdPollInfo * fd2PollInfo(int fd)
Definition: XrdLinkCtl.hh:103
static void idleScan()
Look for idle links and close hem down.
static int getName(int &curr, char *bname, int blen, XrdLinkMatch *who=0)
static char * LinkBat
Definition: XrdLinkCtl.hh:204
static short waitKill
Definition: XrdLinkCtl.hh:191
static unsigned int LinkAlloc
Definition: XrdLinkCtl.hh:205
Definition: XrdPollInfo.hh:36
Definition: XrdNetAddr.hh:41
~XrdLinkCtl()
Definition: XrdLinkCtl.hh:200
static void setKWT(int wkSec, int kwSec)
Definition: XrdSysPthread.hh:164
static int LTLast
Definition: XrdLinkCtl.hh:206
unsigned int Instance
Definition: XrdLink.hh:594
static XrdLink * Alloc(XrdNetAddr &peer, int opts=0)
static const char * TraceID
Definition: XrdLinkCtl.hh:208
Definition: XrdLink.hh:51
XrdPollInfo PollInfo
Definition: XrdLinkXeq.hh:145
Definition: XrdLinkXeq.hh:52
Definition: XrdLinkCtl.hh:42
static XrdLink * fd2link(int fd, unsigned int inst)
Definition: XrdLinkCtl.hh:87
static int Setup(int maxfds, int idlewt)
Definition: XrdLinkMatch.hh:35
static void SyncAll()
Synchronize statustics for ll links.
static int maxFD
Definition: XrdLinkCtl.hh:207
XrdLinkCtl()
Constructor.
Definition: XrdLinkCtl.hh:197
static XrdLink * Find(int &curr, XrdLinkMatch *who=0)
static short killWait
Link destruction control constants.
Definition: XrdLinkCtl.hh:190
static XrdLinkCtl ** LinkTab
Definition: XrdLinkCtl.hh:203