#include <XrdLink.hh>
|
XrdNetAddrInfo * | AddrInfo () |
|
int | Backlog () |
|
void | Bind () |
|
void | Bind (pthread_t tid) |
|
int | Client (char *buff, int blen) |
|
int | Close (int defer=0) |
|
void | DoIt () |
|
void | Enable () |
|
int | FDnum () |
|
int | getIOStats (long long &inbytes, long long &outbytes, int &numstall, int &numtardy) |
|
XrdProtocol * | getProtocol () |
|
void | Hold (int lk) |
|
const char * | Host () |
|
unsigned int | Inst () |
|
bool | isFlawed () |
|
bool | isInstance (unsigned int inst) |
|
const char * | Name () |
|
const XrdNetAddr * | NetAddr () |
|
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 sfVec *sdP, int sdn) |
|
void | Serialize () |
|
int | setEtext (const char *text) |
|
void | setID (const char *userid, int procid) |
|
void | setLocation (XrdNetAddrInfo::LocInfo &loc) |
|
bool | setNB () |
|
XrdProtocol * | setProtocol (XrdProtocol *pp) |
|
void | setRef (int cnt) |
|
void | Shutdown (bool getLock) |
|
void | syncStats (int *ctime=0) |
|
int | Terminate (const XrdLink *owner, int fdnum, unsigned int inst) |
|
time_t | timeCon () |
|
int | UseCnt () |
|
void | armBridge () |
|
int | hasBridge () |
|
| XrdLink () |
|
| ~XrdLink () |
|
|
static XrdLink * | Alloc (XrdNetAddr &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 | Init (XrdSysError *eP, XrdOucTrace *tP, XrdScheduler *sP) |
|
static void | Init (XrdInet *iP) |
|
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) |
|
Obtain the address information for this link.
- Returns
- Pointer to the XrdAddrInfo object. The pointer is valid while the end-point is connected.
References Addr.
Allocate a new link object.
- Parameters
-
peer | The connection information for the endpoint. |
opts | Processing options: XRDLINK_NOCLOSE - do not close the FD upon recycling. XRDLINK_RDLOCK - obtain a lock prior to reading data. |
- Returns
- !0 The pointer to the new object. =0 A new link object could not be allocated.
void XrdLink::armBridge |
( |
| ) |
|
|
inline |
void XrdLink::Bind |
( |
pthread_t |
tid | ) |
|
|
inline |
int XrdLink::Client |
( |
char * |
buff, |
|
|
int |
blen |
|
) |
| |
int XrdLink::Close |
( |
int |
defer = 0 | ) |
|
static XrdLink* XrdLink::fd2link |
( |
int |
fd | ) |
|
|
inlinestatic |
static XrdLink* XrdLink::fd2link |
( |
int |
fd, |
|
|
unsigned int |
inst |
|
) |
| |
|
inlinestatic |
int XrdLink::getIOStats |
( |
long long & |
inbytes, |
|
|
long long & |
outbytes, |
|
|
int & |
numstall, |
|
|
int & |
numtardy |
|
) |
| |
|
inline |
static int XrdLink::getName |
( |
int & |
curr, |
|
|
char * |
bname, |
|
|
int |
blen, |
|
|
XrdLinkMatch * |
who = 0 |
|
) |
| |
|
static |
int XrdLink::hasBridge |
( |
| ) |
|
|
inline |
void XrdLink::Hold |
( |
int |
lk | ) |
|
|
inline |
const char* XrdLink::Host |
( |
| ) |
|
|
inline |
Get the fully qualified name of the endpoint.
- Returns
- Pointer to fully qualified host name. The contents are valid while the endpoint is connected.
References HostName.
static void XrdLink::Init |
( |
XrdInet * |
iP | ) |
|
|
inlinestatic |
unsigned int XrdLink::Inst |
( |
| ) |
|
|
inline |
Obtain the link's instance number.
- Returns
- The link's instance number.
References Instance.
bool XrdLink::isFlawed |
( |
| ) |
|
|
inline |
Indicate whether or not the link has an outstanding error.
- Returns
- True the link has an outstanding error. the link has no outstanding error.
References Etext.
bool XrdLink::isInstance |
( |
unsigned int |
inst | ) |
|
|
inline |
Indicate whether or not this link is of a particular instance. only be used for display and not for security purposes.
- Parameters
-
inst | the expected instance number. |
- Returns
- True the link matches the instance number. the link differs the instance number.
References FD, and Instance.
const char* XrdLink::Name |
( |
| ) |
|
|
inline |
Obtain the domain trimmed name of the end-point. The returned value should only be used for display and not for security purposes.
- Returns
- Pointer to the name that remains valid during the link's lifetime.
References Lname.
Obtain the network address object for this link. The returned value is valid as long as the end-point is connected. Otherwise, it may change.
- Returns
- Pointer to the object and remains valid during the link's lifetime.
References Addr.
Referenced by XrdCmsNode::isNode().
int XrdLink::Peek |
( |
char * |
buff, |
|
|
int |
blen, |
|
|
int |
timeout = -1 |
|
) |
| |
int XrdLink::Recv |
( |
char * |
buff, |
|
|
int |
blen |
|
) |
| |
int XrdLink::Recv |
( |
char * |
buff, |
|
|
int |
blen, |
|
|
int |
timeout |
|
) |
| |
int XrdLink::RecvAll |
( |
char * |
buff, |
|
|
int |
blen, |
|
|
int |
timeout = -1 |
|
) |
| |
int XrdLink::Send |
( |
const char * |
buff, |
|
|
int |
blen |
|
) |
| |
int XrdLink::Send |
( |
const struct iovec * |
iov, |
|
|
int |
iocnt, |
|
|
int |
bytes = 0 |
|
) |
| |
int XrdLink::Send |
( |
const sfVec * |
sdP, |
|
|
int |
sdn |
|
) |
| |
int XrdLink::sendData |
( |
const char * |
Buff, |
|
|
int |
Blen |
|
) |
| |
|
private |
void XrdLink::Serialize |
( |
| ) |
|
int XrdLink::setEtext |
( |
const char * |
text | ) |
|
void XrdLink::setID |
( |
const char * |
userid, |
|
|
int |
procid |
|
) |
| |
static void XrdLink::setKWT |
( |
int |
wkSec, |
|
|
int |
kwSec |
|
) |
| |
|
static |
void XrdLink::setRef |
( |
int |
cnt | ) |
|
static int XrdLink::Setup |
( |
int |
maxfd, |
|
|
int |
idlewait |
|
) |
| |
|
static |
void XrdLink::Shutdown |
( |
bool |
getLock | ) |
|
static int XrdLink::Stats |
( |
char * |
buff, |
|
|
int |
blen, |
|
|
int |
do_sync = 0 |
|
) |
| |
|
static |
void XrdLink::syncStats |
( |
int * |
ctime = 0 | ) |
|
int XrdLink::Terminate |
( |
const XrdLink * |
owner, |
|
|
int |
fdnum, |
|
|
unsigned int |
inst |
|
) |
| |
time_t XrdLink::timeCon |
( |
| ) |
|
|
inline |
long long XrdLink::BytesIn |
|
private |
long long XrdLink::BytesInTot |
|
private |
long long XrdLink::BytesOut |
|
private |
long long XrdLink::BytesOutTot |
|
private |
unsigned int XrdLink::Instance |
|
private |
const char XrdLink::KillMax = 60 |
|
staticprivate |
const char XrdLink::KillMsk = 0x7f |
|
staticprivate |
const char XrdLink::KillXwt = 0x80 |
|
staticprivate |
unsigned int XrdLink::LinkAlloc |
|
staticprivate |
long long XrdLink::LinkBytesIn |
|
staticprivate |
long long XrdLink::LinkBytesOut |
|
staticprivate |
long long XrdLink::LinkConTime |
|
staticprivate |
int XrdLink::LinkCountMax |
|
staticprivate |
long long XrdLink::LinkCountTot |
|
staticprivate |
int XrdLink::LinkTimeOuts |
|
staticprivate |
struct pollfd* XrdLink::PollEnt |
|
private |
const char* XrdLink::TraceID |
|
staticprivate |
The documentation for this class was generated from the following file: