bes  Updated for version 3.20.8
dmrpp::dmrpp_easy_handle Class Reference

Bundle a libcurl easy handle with other information. More...

#include <CurlHandlePool.h>

Collaboration diagram for dmrpp::dmrpp_easy_handle:
Collaboration graph

Public Member Functions

 dmrpp_easy_handle ()
 Build a string with hex info about stuff libcurl gets. More...
 
void read_data ()
 This is the read_data() method for all transfers. More...
 

Friends

class CurlHandlePool
 

Detailed Description

Bundle a libcurl easy handle with other information.

Provide an object that encapsulates a libcurl easy handle, a URL and a DMR++ handler 'chunk.' This can be used with the libcurl 'easy' API for serial data access or parallel (round robin) data transfers.

Definition at line 62 of file CurlHandlePool.h.

Constructor & Destructor Documentation

◆ dmrpp_easy_handle()

dmrpp_easy_handle::dmrpp_easy_handle ( )

Build a string with hex info about stuff libcurl gets.

Unused, but might be useful someday.

Definition at line 230 of file CurlHandlePool.cc.

Member Function Documentation

◆ read_data()

void dmrpp_easy_handle::read_data ( )

This is the read_data() method for all transfers.

This method is used by Chunk::read_data() which is used for all data transfers by the dmrpp module classes (DmrppArray, D4Opaque, and Common::read_atomic()). Whether a request is retired is determined by curl::super_easy_perform().

If either the super_easy_perform() (our concoction) or easy_perform() throws, assume the transfer failed. The caller of this method must handle all cleanup.

Definition at line 299 of file CurlHandlePool.cc.


The documentation for this class was generated from the following files: