Definition at line 38 of file XrdClXCpSrc.cc.
◆ ChunkHandler()
XrdCl::ChunkHandler::ChunkHandler |
( |
XCpSrc * |
src, |
|
|
uint64_t |
offset, |
|
|
uint64_t |
size, |
|
|
char * |
buffer, |
|
|
File * |
handle, |
|
|
bool |
usepgrd |
|
) |
| |
|
inline |
Definition at line 42 of file XrdClXCpSrc.cc.
42 :
43 pSrc( src->Self() ), pOffset( offset ), pSize( size ), pBuffer( buffer ), pHandle( handle ), pUsePgRead( usepgrd )
44 {
45
46 }
◆ ~ChunkHandler()
virtual XrdCl::ChunkHandler::~ChunkHandler |
( |
| ) |
|
|
inlinevirtual |
◆ HandleResponse()
Called when a response to associated request arrives or an error occurs
- Parameters
-
status | status of the request |
response | an object associated with the response (request dependent) |
Reimplemented from XrdCl::ResponseHandler.
Definition at line 53 of file XrdClXCpSrc.cc.
54 {
55 PageInfo *chunk = 0;
56 if( response )
57 {
58 ToPgInfo( response, chunk );
59 delete response;
60 }
61
62 if( !chunk && status->IsOK() )
63 {
65 }
66
67 if( status->IsOK() && chunk->GetLength() != pSize )
68 {
70 }
71
72 if( !status->IsOK() )
73 {
74 delete[] pBuffer;
75 delete chunk;
76 chunk = 0;
77 }
78
79 pSrc->ReportResponse( status, chunk, pHandle );
80
81 delete this;
82 }
const uint16_t stError
An error occurred that could potentially be retried.
const uint16_t errDataError
data is corrupted
const uint16_t errInternal
Internal error.
References XrdCl::errDataError, XrdCl::errInternal, XrdCl::PageInfo::GetLength(), XrdCl::Status::IsOK(), and XrdCl::stError.
The documentation for this class was generated from the following file: