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;
74 return (fd <= LTLast && LinkBat[fd] ? LinkTab[fd] : 0);
88 {
if (fd < 0) fd = -fd;
89 if (fd <= LTLast && LinkBat[fd] && LinkTab[fd]
90 && LinkTab[fd]->
Instance == inst)
return LinkTab[fd];
104 {
if (fd < 0) fd = -fd;
105 if (fd <= LTLast && LinkBat[fd])
160 static void setKWT(
int wkSec,
int kwSec);
172 static int Setup(
int maxfds,
int idlewt);
184 static void Unhook(
int fd);
204 static char *LinkBat;
205 static const unsigned int LinkAlloc;
208 static const char *TraceID;
static XrdLink * Alloc(XrdNetAddr &peer, int opts=0)
static XrdLink * fd2link(int fd)
static void SyncAll()
Synchronize statustics for ll links.
static int Setup(int maxfds, int idlewt)
static XrdLink * Find(int &curr, XrdLinkMatch *who=0)
static void setKWT(int wkSec, int kwSec)
static XrdPollInfo * fd2PollInfo(int fd)
static void idleScan()
Look for idle links and close hem down.
static XrdLink * fd2link(int fd, unsigned int inst)
static short killWait
Link destruction control constants.
static int getName(int &curr, char *bname, int blen, XrdLinkMatch *who=0)
static void Unhook(int fd)
Unhook a link from the active table of links.