Object for reading out data from the VectorRead response. More...
#include <XrdClAsyncVectorReader.hh>
Public Member Functions | |
| AsyncVectorReader (const URL &url, const Message &request) | |
| XRootDStatus | GetResponse (AnyObject *&response) |
| Get the response. | |
| XRootDStatus | Read (Socket &socket, uint32_t &btsret) |
| Public Member Functions inherited from XrdCl::AsyncRawReaderIntfc | |
| AsyncRawReaderIntfc (const URL &url, const Message &request) | |
| virtual | ~AsyncRawReaderIntfc () |
| Destructor. | |
| void | SetChunkList (ChunkList *chunks) |
| Sets the chunk list with user buffers. | |
| void | SetDataLength (int dlen) |
| Sets response data length. | |
Additional Inherited Members | |
| Protected Types inherited from XrdCl::AsyncRawReaderIntfc | |
| using | buffer_t = std::vector<char> |
| enum | Stage { ReadStart , ReadRdLst , ReadRaw , ReadDiscard , ReadDone } |
| Stages of reading out a response from the socket. More... | |
| Protected Member Functions inherited from XrdCl::AsyncRawReaderIntfc | |
| XRootDStatus | ReadBytesAsync (Socket &socket, char *buffer, uint32_t toBeRead, uint32_t &bytesRead) |
| Protected Attributes inherited from XrdCl::AsyncRawReaderIntfc | |
| size_t | chidx |
| size_t | chlen |
| size_t | choff |
| std::vector< ChunkStatus > | chstatus |
| ChunkList * | chunks |
| bool | dataerr |
| buffer_t | discardbuff |
| uint32_t | dlen |
| uint32_t | msgbtsrd |
| uint32_t | rawbtsrd |
| Stage | readstage |
| const Message & | request |
| const URL & | url |
Object for reading out data from the VectorRead response.
Definition at line 32 of file XrdClAsyncVectorReader.hh.
Constructor
Definition at line 40 of file XrdClAsyncVectorReader.hh.
References XrdCl::AsyncRawReaderIntfc::AsyncRawReaderIntfc(), XrdCl::AsyncRawReaderIntfc::request, and XrdCl::AsyncRawReaderIntfc::url.
|
inlinevirtual |
Get the response.
Implements XrdCl::AsyncRawReaderIntfc.
Definition at line 249 of file XrdClAsyncVectorReader.hh.
References XrdCl::AsyncRawReaderIntfc::chstatus, XrdCl::AsyncRawReaderIntfc::chunks, XrdCl::errInvalidResponse, XrdCl::AsyncRawReaderIntfc::rawbtsrd, XrdCl::AnyObject::Set(), and XrdCl::stFatal.
|
inlinevirtual |
Readout raw data from socket
| socket | : the socket |
| btsret | : number of bytes read |
Implements XrdCl::AsyncRawReaderIntfc.
Definition at line 55 of file XrdClAsyncVectorReader.hh.
References XrdCl::AsyncRawReaderIntfc::chidx, XrdCl::AsyncRawReaderIntfc::chlen, XrdCl::AsyncRawReaderIntfc::choff, XrdCl::AsyncRawReaderIntfc::chstatus, XrdCl::AsyncRawReaderIntfc::chunks, XrdCl::Status::code, XrdCl::AsyncRawReaderIntfc::dlen, XrdCl::Log::Dump(), XrdCl::errCorruptedHeader, XrdCl::errInternal, XrdCl::Log::Error(), XrdCl::DefaultEnv::GetLog(), XrdCl::Status::IsOK(), XrdCl::AsyncRawReaderIntfc::msgbtsrd, XrdCl::AsyncRawReaderIntfc::rawbtsrd, XrdCl::AsyncRawReaderIntfc::ReadBytesAsync(), XrdCl::AsyncRawReaderIntfc::ReadDiscard, XrdCl::AsyncRawReaderIntfc::ReadDone, XrdCl::AsyncRawReaderIntfc::ReadRaw, XrdCl::AsyncRawReaderIntfc::ReadRdLst, XrdCl::AsyncRawReaderIntfc::readstage, XrdCl::AsyncRawReaderIntfc::ReadStart, XrdCl::stError, XrdCl::suRetry, XrdCl::AsyncRawReaderIntfc::url, and XrdCl::XRootDMsg.