XrdLinkCtl Class Reference
#include <XrdLinkCtl.hh>
List of all members.
Constructor & Destructor Documentation
XrdLinkCtl::XrdLinkCtl |
( |
|
) |
[inline] |
XrdLinkCtl::~XrdLinkCtl |
( |
|
) |
[inline, private] |
Member Function Documentation
static XrdLink* XrdLinkCtl::fd2link |
( |
int |
fd, |
|
|
unsigned int |
inst | |
|
) |
| | [inline, static] |
Translate a file descriptor number and an instance to a link object.
- Parameters:
-
| fd | The file descriptor number. |
| inst | The file descriptor number instance number. |
- Returns:
- !0 Pointer to the link object. =0 The file descriptor instance is not associated with a link.
References XrdLink::Instance, LinkBat, LinkTab, and LTLast.
static XrdLink* XrdLinkCtl::fd2link |
( |
int |
fd |
) |
[inline, static] |
Translate a file descriptor number to the corresponding link object.
- Parameters:
-
| fd | The file descriptor number. |
- Returns:
- !0 Pointer to the link object. =0 The file descriptor is not associated with a link.
References LinkBat, LinkTab, and LTLast.
static XrdPollInfo* XrdLinkCtl::fd2PollInfo |
( |
int |
fd |
) |
[inline, static] |
Translate a file descriptor number to the corresponding PollInfo object.
- Parameters:
-
| fd | The file descriptor number. |
- Returns:
- !0 Pointer to the PollInfo object. =0 The file descriptor is not associated with a link.
References LinkBat, LinkTab, LTLast, and XrdLinkXeq::PollInfo.
Find the next link matching certain attributes.
- Parameters:
-
| cur | Is an internal tracking value that allows repeated calls. It must be set to a value of 0 or less on the initial call and not touched therafter unless a null pointer is returned. |
| who | If the object use to check if teh link matches the wanted criterea (typically, client name and host name). If the ppointer is nil, the next link is always returned. |
- Returns:
- !0 Pointer to the link object that matches the criterea. The link's reference counter is increased to prevent it from being reused. A subsequent call will reduce the number. =0 No more links exist with the specified criterea.
Reimplemented from XrdLink.
static int XrdLinkCtl::getName |
( |
int & |
curr, |
|
|
char * |
bname, |
|
|
int |
blen, |
|
|
XrdLinkMatch * |
who = 0 | |
|
) |
| | [static] |
Find the next client name matching certain attributes.
- Parameters:
-
| cur | Is an internal tracking value that allows repeated calls. It must be set to a value of 0 or less on the initial call and not touched therafter unless zero is returned. |
| bname | Pointer to a buffer where the name is to be returned. |
| blen | The length of the buffer. |
| who | If the object use to check if the link matches the wanted criterea (typically, client name and host name). If the pointer is nil, a match always occurs. |
- Returns:
- !0 The length of the name placed in the buffer. =0 No more links exist with the specified criterea.
Reimplemented from XrdLinkXeq.
static void XrdLinkCtl::idleScan |
( |
|
) |
[static] |
Look for idle links and close hem down.
static void XrdLinkCtl::setKWT |
( |
int |
wkSec, |
|
|
int |
kwSec | |
|
) |
| | [static] |
Set kill constants.
- Parameters:
-
| wksec | Seconds to wait for kill to happed, |
| kwsec | The minimum number of seconds to wait after killing a connection for it to end. |
static int XrdLinkCtl::Setup |
( |
int |
maxfds, |
|
|
int |
idlewt | |
|
) |
| | [static] |
Setup link processing.
- Parameters:
-
| maaxfds | The maximum number of connections to handle. |
| idlewt | The time interval to check for idle connections. |
- Returns:
- !0 Successful. =0 Setup failed.
static void XrdLinkCtl::SyncAll |
( |
|
) |
[static] |
Synchronize statustics for ll links.
static void XrdLinkCtl::Unhook |
( |
int |
fd |
) |
[static] |
Unhook a link from the active table of links.
Member Data Documentation
Link destruction control constants.
The documentation for this class was generated from the following file: