bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
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.
 
void read_data ()
 This is the read_data() method for all transfers.
 

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 47 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 168 of file CurlHandlePool.cc.

◆ ~dmrpp_easy_handle()

dmrpp_easy_handle::~dmrpp_easy_handle ( )

Definition at line 212 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 229 of file CurlHandlePool.cc.

Friends And Related Symbol Documentation

◆ CurlHandlePool

friend class CurlHandlePool
friend

Definition at line 56 of file CurlHandlePool.h.


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