XrdXrootdTransSend Class Reference

#include <XrdXrootdTransSend.hh>

Inheritance diagram for XrdXrootdTransSend:
Inheritance graph
[legend]
Collaboration diagram for XrdXrootdTransSend:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int Send (const struct iovec *headP, int headN, const struct iovec *tailP, int tailN)
 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 ()

Private Attributes

union {
   long long   sfOff
   XrdOucSFVec *   sfVP
}; 
int sfLen
int sfFD

Constructor & Destructor Documentation

XrdXrootdTransSend::XrdXrootdTransSend ( XrdLink lP,
kXR_char sid,
kXR_unt16  req,
long long  offset,
int  dlen,
int  fdnum 
) [inline]
XrdXrootdTransSend::XrdXrootdTransSend ( XrdLink lP,
kXR_char sid,
kXR_unt16  req,
XrdOucSFVec sfvec,
int  sfvnum,
int  dlen 
) [inline]
XrdXrootdTransSend::~XrdXrootdTransSend (  )  [inline]

Member Function Documentation

int XrdXrootdTransSend::Send ( const struct iovec *  headP,
int  headN,
const struct iovec *  tailP,
int  tailN 
) [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.

Parameters:
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.
Returns:
< 0 transmission error has occurred. This can be due to either connection failure or data source error (i.e. I/O error). = 0 data has been successfully sent. > 0 the supplied context was not generated by a valid File() callback. No data has been sent.
Parameters:
headP pointer to leading data array
headN array count
tailP pointer to trailing data array
tailN array count

Reimplemented from XrdXrootd::Bridge::Context.


Member Data Documentation

union { ... } [private]
int XrdXrootdTransSend::sfFD [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Sep 2020 for xrootd by  doxygen 1.6.1