1 #ifndef __XRDXROOTDTRANSIT_HH_
2 #define __XRDXROOTDTRANSIT_HH_
33 #include <sys/types.h>
72 static int Attn(
XrdLink *lP,
short *theSID,
int rcode,
73 const struct iovec *ioVec,
int ioNum,
int ioLen);
122 bool Run(
const char *xreqP,
131 int Send(
int rcode,
const struct iovec *ioVec,
int ioNum,
int ioLen);
137 int Send(
long long offset,
int dlen,
int fdnum);
146 {
return SetSF(fhandle, seton);}
153 {runWMax = wtime; runWCall = notify;}
169 const struct iovec *ioV,
int ioN,
int ioL);
170 bool Fail(
int ecode,
const char *etext);
173 const char *nameP,
const char *protP
175 bool ReqWrite(
char *xdataP,
int xdataL);
176 bool RunCopy(
char *buffP,
int buffL);
178 const struct iovec *ioV,
int ioN,
int ioL);
180 const struct iovec *ioV,
int ioN,
int ioL);
182 class SchedReq :
public XrdJob
185 void DoIt() {(spanP->*cbFunc)();}
188 :
XrdJob(why), spanP(tP), cbFunc(cbP) {}
201 static const char *reqTab;
204 const char *runEText;
int SetSF(kXR_char *fhandle, bool seton=false)
bool Run(const char *xreqP, char *xdataP=0, int xdataL=0)
Inject an xrootd request into the protocol stack.
static const char * ReqTable()
Initialize the valid request table.
void Redrive()
Redrive a request after a wait.
int Send(int rcode, const struct iovec *ioVec, int ioNum, int ioLen)
Handle request data response.
void Recycle(XrdLink *lp, int consec, const char *reason)
Handle link shutdown.
static void Init(XrdScheduler *schedP, int qMax, int qTTL)
Perform one-time initialization.
static XrdXrootdTransit * Alloc(XrdXrootd::Bridge::Result *respP, XrdLink *linkP, XrdSecEntity *seceP, const char *nameP, const char *protP)
Get a new transit object.
int setSF(kXR_char *fhandle, bool seton=false)
Set sendfile() enablement.
static int Attn(XrdLink *lP, short *theSID, int rcode, const struct iovec *ioVec, int ioNum, int ioLen)
Handle attention response (i.e. async response)
virtual ~XrdXrootdTransit()
void SetWait(int wtime, bool notify=false)
Set maximum wait time.
XrdXrootdTransit()
Constructor & Destructor.
void Proceed()
Resume processing after a waitresp completion.
bool Disc()
Handle dismantlement.
int Process(XrdLink *lp)
Handle link activation (replaces parent activation).