33 std::unique_ptr<XRootDStatus> status( statusptr );
34 std::unique_ptr<AnyObject> response( responseptr );
49 time_t took = time( 0 ) - pStartTime;
63 uint16_t left = pTimeout - took;
70 response->Get( info );
91 pDirList.reset( list );
100 resp->
Set( pDirList.release() );
111 void ZipListHandler::DoDirList( time_t timeLeft )
122 void ZipListHandler::DoZipOpen( time_t timeLeft )
134 void ZipListHandler::DoZipClose( time_t timeLeft )
void Set(Type object, bool own=true)
Send file/filesystem queries to an XRootD cluster.
virtual void HandleResponse(XRootDStatus *status, AnyObject *response)
bool TestFlags(uint32_t flags) const
Test flags.
@ IsDir
This is a directory.
std::string GetURL() const
Get the URL.
const std::string & GetPath() const
Get the path.
XRootDStatus OpenArchive(const std::string &url, OpenFlags::Flags flags, ResponseHandler *handler, uint16_t timeout=0)
XRootDStatus List(DirectoryList *&list)
XRootDStatus CloseArchive(ResponseHandler *handler, uint16_t timeout=0)
Create the central directory at the end of ZIP archive and close it.
virtual void HandleResponse(XrdCl::XRootDStatus *statusptr, XrdCl::AnyObject *responseptr)
Handle the server response.
const uint16_t errOperationExpired
const uint16_t stError
An error occurred that could potentially be retried.
@ Read
Open only for reading.
bool IsOK() const
We're fine.