xrootd
|
#include <XrdXrootdBridge.hh>
Public Member Functions | |
virtual int | Send (const struct iovec *headP, int headN, const struct iovec *tailP, int tailN) |
Context (XrdLink *lP, kXR_char *sid, kXR_unt16 req) | |
Constructor and Destructor. | |
virtual | ~Context () |
Public Attributes | ||
XrdLink * | linkP | |
-> associated session link object (i.e. connection) | ||
kXR_unt16 | rCode | |
associated "kXR" request code in host byte order | ||
union { | ||
kXR_unt16 num | ||
associated stream ID as a short More... | ||
kXR_char chr [2] | ||
associated stream ID as the original char[2] More... | ||
} | sID | |
associated request stream ID | ||
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.
Constructor and Destructor.
References sID.
|
inlinevirtual |
|
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.
kXR_char XrdXrootd::Bridge::Context::chr[2] |
associated stream ID as the original char[2]
XrdLink* XrdXrootd::Bridge::Context::linkP |
-> associated session link object (i.e. connection)
kXR_unt16 XrdXrootd::Bridge::Context::num |
associated stream ID as a short
kXR_unt16 XrdXrootd::Bridge::Context::rCode |
associated "kXR" request code in host byte order
union { ... } XrdXrootd::Bridge::Context::sID |
associated request stream ID
Referenced by Context().