1 #ifndef __XRD_LINKXEQ_H__
2 #define __XRD_LINKXEQ_H__
32 #include <sys/types.h>
61 int Client(
char *buff,
int blen);
63 int Close(
bool defer=
false);
69 int &numstall,
int &numtardy)
85 const char *
Name()
const {
return (
const char *)
Lname;}
90 int Peek(
char *buff,
int blen,
int timeout=-1);
92 int Recv(
char *buff,
int blen);
93 int Recv(
char *buff,
int blen,
int timeout);
94 int Recv(
const struct iovec *
iov,
int iocnt,
int timeout);
96 int RecvAll(
char *buff,
int blen,
int timeout=-1);
100 int Send(
const char *buff,
int blen);
101 int Send(
const struct iovec *
iov,
int iocnt,
int bytes=0);
105 void setID(
const char *userid,
int procid);
119 static int Stats(
char *buff,
int blen,
bool do_sync=
false);
123 int TLS_Peek(
char *Buff,
int Blen,
int timeout);
127 int TLS_Recv(
char *Buff,
int Blen,
int timeout,
bool havelock=
false);
129 int TLS_Recv(
const struct iovec *
iov,
int iocnt,
int timeout);
131 int TLS_RecvAll(
char *Buff,
int Blen,
int timeout);
133 int TLS_Send(
const char *Buff,
int Blen);
135 int TLS_Send(
const struct iovec *
iov,
int iocnt,
int bytes);
149 int RecvIOV(
const struct iovec *
iov,
int iocnt);
151 int sendData(
const char *Buff,
int Blen);
152 int SendIOV(
const struct iovec *
iov,
int iocnt,
int bytes);
155 bool TLS_Write(
const char *Buff,
int Blen);
static const char * TraceID
int TLS_Send(const char *Buff, int Blen)
int TLS_Error(const char *act, XrdTls::RC rc)
int TLS_Peek(char *Buff, int Blen, int timeout)
int Client(char *buff, int blen)
XrdTlsPeerCerts * getPeerCerts()
const char * Name() const
int Close(bool defer=false)
int TLS_Recv(char *Buff, int Blen)
int sendData(const char *Buff, int Blen)
bool TLS_Write(const char *Buff, int Blen)
int SendIOV(const struct iovec *iov, int iocnt, int bytes)
XrdProtocol * setProtocol(XrdProtocol *pp, bool push)
static long long LinkCountTot
void Shutdown(bool getLock)
int Peek(char *buff, int blen, int timeout=-1)
static int getName(int &curr, char *bname, int blen, XrdLinkMatch *who=0)
static int Stats(char *buff, int blen, bool do_sync=false)
void setID(const char *userid, int procid)
XrdNetAddrInfo * AddrInfo()
int Recv(char *buff, int blen)
static long long LinkBytesIn
int TLS_RecvAll(char *Buff, int Blen, int timeout)
const XrdNetAddr * NetAddr() const
int Send(const char *buff, int blen)
int RecvIOV(const struct iovec *iov, int iocnt)
static long long LinkConTime
void setLocation(XrdNetAddrInfo::LocInfo &loc)
int RecvAll(char *buff, int blen, int timeout=-1)
bool Register(const char *hName)
static XrdSysMutex statsMutex
void setProtName(const char *name)
static long long LinkBytesOut
void syncStats(int *ctime=0)
XrdProtocol * getProtocol()
bool setTLS(bool enable, XrdTlsContext *ctx=0)
int getIOStats(long long &inbytes, long long &outbytes, int &numstall, int &numtardy)
void SetLocation(XrdNetAddrInfo::LocInfo &loc)
Socket wrapper for TLS I/O.