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);
318 int Recv(
const struct iovec *
iov,
int iocnt,
int timeout);
335 int RecvAll(
char *buff,
int blen,
int timeout=-1);
361 int Send(
const char *buff,
int blen);
375 int Send(
const struct iovec *
iov,
int iocnt,
int bytes=0);
418 void setID(
const char *userid,
int procid);
499 static int Stats(
char *buff,
int blen,
bool do_sync=0);
527 int Terminate(
const char *owner,
int fdnum,
unsigned int inst);
XrdProtocol * setProtocol(XrdProtocol *pp, bool runit=false, bool push=false)
void Serialize()
Wait for all outstanding requests to be completed on the link.
int Wait4Data(int timeout)
static XrdLink * Find(int &curr, XrdLinkMatch *who=0)
int setEtext(const char *text)
bool isInstance(unsigned int inst) const
bool setTLS(bool enable, XrdTlsContext *ctx=0)
Enable or disable TLS on the link.
int Peek(char *buff, int blen, int timeout=-1)
int Recv(char *buff, int blen)
void syncStats(int *ctime=0)
const char * Host() const
static int getName(int &curr, char *bname, int blen, XrdLinkMatch *who=0)
time_t timeCon() const
Return the time the link was made active (i.e. time of connection).
int Close(bool defer=false)
int Terminate(const char *owner, int fdnum, unsigned int inst)
void setID(const char *userid, int procid)
int UseCnt() const
Return link's reference count.
const XrdNetAddr * NetAddr() const
int RecvAll(char *buff, int blen, int timeout=-1)
void Enable()
Enable the link to field interrupts.
XrdTlsPeerCerts * getPeerCerts()
XrdNetAddrInfo * AddrInfo()
char * ID
Pointer to the client's link identity.
int Send(const char *buff, int blen)
bool Register(const char *hName)
void armBridge()
Mark this link as an in-memory communications bridge (internal use only).
void setProtName(const char *name)
void setLocation(XrdNetAddrInfo::LocInfo &loc)
int getIOStats(long long &inbytes, long long &outbytes, int &numstall, int &numtardy)
XrdProtocol * getProtocol()
Obtain current protocol object pointer.
int Client(char *buff, int blen)
const char * Name() const
unsigned int Inst() const
void Shutdown(bool getLock)
static int Stats(char *buff, int blen, bool do_sync=0)