![]() |
XRootD
|
#include <XrdXrootdBridge.hh>
Public Member Functions | |
Context (XrdLink *lP, kXR_char *sid, kXR_unt16 req) | |
Constructor and Destructor. More... | |
virtual | ~Context () |
virtual int | Send (const struct iovec *headP, int headN, const struct iovec *tailP, int tailN) |
Public Attributes | |
XrdLink * | linkP |
-> associated session link object (i.e. connection) More... | |
kXR_unt16 | rCode |
associated "kXR" request code in host byte order More... | |
union { | |
kXR_char | chr [2] |
associated stream ID as the original char[2] More... | |
kXR_unt16 | num |
associated stream ID as a short More... | |
} | sID |
associated request stream ID More... | |
Provide callback context.
The Context object is passed in all Result object callbacks and contains information describing the result context. No public members should be changed by any result callback method. The context object also includes a method that must be used to complete a pending sendfile() result.
Definition at line 225 of file XrdXrootdBridge.hh.
Constructor and Destructor.
Definition at line 274 of file XrdXrootdBridge.hh.
References sID.
|
inlinevirtual |
Definition at line 277 of file XrdXrootdBridge.hh.
|
inlinevirtual |
Complete a File() callback.
The Send() method must be called after the File() callback is invoked to complete data transmission using sendfile(). If Send() is not called the pending sendfile() call is not made and no data is sent to the client.
headP | a pointer to the iovec structure containing the data that must be sent before the sendfile() data. If there is none, the pointer can be null. |
headN | the number of elements in the headP iovec structure array. |
tailP | a pointer to the iovec structure containing the data that must be sent after the sendfile() data. If there is none, the pointer can be null. |
tailN | the number of elements in the tailP iovec structure array. |
headP | pointer to leading data array |
headN | array count |
tailP | pointer to trailing data array |
tailN | array count |
Reimplemented in XrdXrootdTransSend.
Definition at line 258 of file XrdXrootdBridge.hh.
Referenced by XrdHttpReq::File().
XrdLink* XrdXrootd::Bridge::Context::linkP |
-> associated session link object (i.e. connection)
Definition at line 229 of file XrdXrootdBridge.hh.
Referenced by XrdXrootdTransSend::Send().
kXR_unt16 XrdXrootd::Bridge::Context::rCode |
associated "kXR" request code in host byte order
Definition at line 230 of file XrdXrootdBridge.hh.
union { ... } XrdXrootd::Bridge::Context::sID |
associated request stream ID
Referenced by Context().