ipfs-chromium
Public Member Functions | List of all members
ipfs::BlockRequestor Class Referenceabstract

Interface for classes that can asynchronously fetch a block for a CID. More...

#include <library/include/ipfs_client/block_requestor.h>

Public Member Functions

virtual void RequestByCid (std::string cid, std::shared_ptr< DagListener > dl, Priority priority)=0
 Request a single block from gateway(s). More...
 

Detailed Description

Interface for classes that can asynchronously fetch a block for a CID.

This is one of the interfaces using code is meant to implement. Common usages:

Member Function Documentation

◆ RequestByCid()

virtual void ipfs::BlockRequestor::RequestByCid ( std::string  cid,
std::shared_ptr< DagListener >  dl,
Priority  priority 
)
pure virtual

Request a single block from gateway(s).

Parameters
cid- MB-MH string representation of the Content IDentifier
dl- Someone who may be interested
priority- Urgency of the request
Note
The DagListener is mostly about lifetime extension, since it's waiting on something which is waiting on this

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