32 #include <sys/types.h> 90 int Client(
char *buff,
int blen);
102 int Close(
bool defer=
false);
150 int getIOStats(
long long &inbytes,
long long &outbytes,
151 int &numstall,
int &numtardy);
248 const char *
Name()
const;
271 int Peek(
char *buff,
int blen,
int timeout=-1);
284 int Recv(
char *buff,
int blen);
301 int Recv(
char *buff,
int blen,
int timeout);
317 int Recv(
const struct iovec *
iov,
int iocnt,
int timeout);
334 int RecvAll(
char *buff,
int blen,
int timeout=-1);
360 int Send(
const char *buff,
int blen);
374 int Send(
const struct iovec *
iov,
int iocnt,
int bytes=0);
417 void setID(
const char *userid,
int procid);
498 static int Stats(
char *buff,
int blen,
bool do_sync=0);
526 int Terminate(
const char *owner,
int fdnum,
unsigned int inst);
unsigned int Inst() const
Definition: XrdLink.hh:218
int Client(char *buff, int blen)
const XrdNetAddr * NetAddr() const
void setLocation(XrdNetAddrInfo::LocInfo &loc)
int Terminate(const char *owner, int fdnum, unsigned int inst)
XrdOucSFVec sfVec
Definition: XrdLink.hh:389
void syncStats(int *ctime=0)
void setProtName(const char *name)
void Serialize()
Wait for all outstanding requests to be completed on the link.
Definition: XrdOucSFVec.hh:43
XrdProtocol * setProtocol(XrdProtocol *pp, bool runit=false, bool push=false)
const char * Name() const
time_t timeCon() const
Return the time the link was made active (i.e. time of connection).
bool hasBridge() const
Definition: XrdLink.hh:553
Definition: XrdProtocol.hh:124
void * rsvd1[3]
Definition: XrdLink.hh:591
XrdTlsPeerCerts * getPeerCerts()
Definition: XrdPollInfo.hh:36
char * ID
Pointer to the client's link identity.
Definition: XrdLink.hh:210
Definition: XrdNetAddr.hh:41
int Close(bool defer=false)
int UseCnt() const
Return link's reference count.
Definition: XrdOucIOVec.hh:65
char * HostName
Definition: XrdLink.hh:593
static bool sfOK
Definition: XrdLink.hh:387
unsigned int Instance
Definition: XrdLink.hh:594
int setEtext(const char *text)
Definition: XrdLink.hh:51
void Enable()
Enable the link to field interrupts.
int Peek(char *buff, int blen, int timeout=-1)
const char * Host() const
Definition: XrdLink.hh:204
static int getName(int &curr, char *bname, int blen, XrdLinkMatch *who=0)
char rsvd2[2]
Definition: XrdLink.hh:597
bool setTLS(bool enable, XrdTlsContext *ctx=0)
Enable or disable TLS on the link.
Definition: XrdNetAddrInfo.hh:194
XrdProtocol * getProtocol()
Obtain current protocol object pointer.
~XrdLink()
Definition: XrdLink.hh:585
Definition: XrdLinkXeq.hh:52
static XrdLink * Find(int &curr, XrdLinkMatch *who=0)
void setID(const char *userid, int procid)
int Send(const char *buff, int blen)
bool isInstance(unsigned int inst) const
Definition: XrdNetAddrInfo.hh:53
int Wait4Data(int timeout)
Definition: XrdTlsContext.hh:36
XrdLinkXeq & linkXQ
Definition: XrdLink.hh:592
bool isTLS
Definition: XrdLink.hh:596
XrdNetAddrInfo * AddrInfo()
int RecvAll(char *buff, int blen, int timeout=-1)
void Shutdown(bool getLock)
Definition: XrdLinkMatch.hh:35
bool hasTLS() const
Definition: XrdLink.hh:565
void armBridge()
Mark this link as an in-memory communications bridge (internal use only).
static int Stats(char *buff, int blen, bool do_sync=0)
int getIOStats(long long &inbytes, long long &outbytes, int &numstall, int &numtardy)
int Recv(char *buff, int blen)
Definition: XrdTlsPeerCerts.hh:34
bool Register(const char *hName)
bool isBridged
Definition: XrdLink.hh:595