Go to the documentation of this file. 1 #ifndef __XRDOUCPGRWUTILS_HH__
2 #define __XRDOUCPGRWUTILS_HH__
35 #include <sys/types.h>
54 static void csCalc(
const char* data, off_t offs,
size_t count,
57 static void csCalc(
const char* data, off_t offs,
size_t count,
58 std::vector<uint32_t> &csvec);
70 static int csNum(off_t offs,
int count);
85 static int csNum(off_t offs,
int count,
int &fLen,
int &lLen);
106 dataInfo(
const char* dP,
const uint32_t* cP, off_t o,
int n)
int count
Number of bytes to check.
Definition: XrdOucPgrwUtils.hh:104
dataInfo(const char *dP, const uint32_t *cP, off_t o, int n)
Definition: XrdOucPgrwUtils.hh:106
XrdOucPgrwUtils()
Definition: XrdOucPgrwUtils.hh:148
const char * eWhy
Reason for failure when zero is returned.
Definition: XrdOucPgrwUtils.hh:141
static void csCalc(const char *data, off_t offs, size_t count, std::vector< uint32_t > &csvec)
static bool csVer(dataInfo &dInfo, off_t &bado, int &badc)
int fLen
Length to use for iov[1].iov_len.
Definition: XrdOucPgrwUtils.hh:139
Compute the layout for an iovec that receives network bytes applying.
Definition: XrdOucPgrwUtils.hh:135
~XrdOucPgrwUtils()
Definition: XrdOucPgrwUtils.hh:149
Definition: XrdOucPgrwUtils.hh:101
static void csCalc(const char *data, off_t offs, size_t count, uint32_t *csval)
const uint32_t * csval
Pointer to vector of checksums.
Definition: XrdOucPgrwUtils.hh:102
off_t offs
Offset associated with data.
Definition: XrdOucPgrwUtils.hh:103
static int csNum(off_t offs, int count)
Compute the required size of a checksum vector based on offset & length.
off_t bOffset
Buffer offset to apply iov[1].iov_base.
Definition: XrdOucPgrwUtils.hh:136
Definition: XrdOucPgrwUtils.hh:38
static int csNum(off_t offs, int count, int &fLen, int &lLen)
Compute the required size of a checksum vector based on offset & length.
int sockLen
Total number of network bytes the iovec will handle.
Definition: XrdOucPgrwUtils.hh:138
const char * data
Pointer to data buffer.
Definition: XrdOucPgrwUtils.hh:101
int lLen
Length to use for iov[csnum*2-1].iov_len)
Definition: XrdOucPgrwUtils.hh:140
static int recvLayout(Layout &layout, off_t offs, int dlen, int bsz=0)
static int sendLayout(Layout &layout, off_t offs, int dlen, int bsz=0)
int dataLen
Total number of filesys bytes the iovec will handle.
Definition: XrdOucPgrwUtils.hh:137