![]() |
XRootD
|
#include <XrdXrootdTransSend.hh>
Public Member Functions | |
XrdXrootdTransSend (XrdLink *lP, kXR_char *sid, kXR_unt16 req, long long offset, int dlen, int fdnum) | |
XrdXrootdTransSend (XrdLink *lP, kXR_char *sid, kXR_unt16 req, XrdOucSFVec *sfvec, int sfvnum, int dlen) | |
~XrdXrootdTransSend () | |
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 () |
virtual int | Send (const struct iovec *headP, int headN, const struct iovec *tailP, int tailN) |
Additional Inherited Members | ||
![]() | ||
XrdLink * | linkP | |
-> associated session link object (i.e. connection) | ||
kXR_unt16 | rCode | |
associated "kXR" request code in host byte order | ||
union { | ||
kXR_char | chr [2] | |
associated stream ID as the original char[2] | ||
kXR_unt16 | num | |
associated stream ID as a short | ||
} | sID | |
associated request stream ID | ||
Definition at line 40 of file XrdXrootdTransSend.hh.
|
inline |
Definition at line 52 of file XrdXrootdTransSend.hh.
|
inline |
Definition at line 57 of file XrdXrootdTransSend.hh.
|
inline |
Definition at line 62 of file XrdXrootdTransSend.hh.
|
virtual |
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 from XrdXrootd::Bridge::Context.
Definition at line 38 of file XrdXrootdTransSend.cc.
References XrdOucSFVec::fdnum, XrdXrootd::Bridge::Context::linkP, XrdLink::Send(), and XrdOucSFVec::sendsz.