CatapultServer  v0.5.0.1 (Elephant)
catapult::nodediscovery::BatchPeersRequestor Class Reference

Creates a batch peers requestor. More...

Collaboration diagram for catapult::nodediscovery::BatchPeersRequestor:

Public Member Functions

 BatchPeersRequestor (const net::PacketIoPickerContainer &packetIoPickers, const NodesConsumer &nodesConsumer)
 Creates a requestor around packetIoPickers, which is used to find partners. Forwards found nodes to nodesConsumer. More...
 
thread::future< RemoteApiResultsfindPeersOfPeers (const utils::TimeSpan &timeout) const
 Finds and forwards peers of peers within the specified timeout. More...
 

Private Types

using NodesConsumer = consumer< const ionet::NodeSet & >
 
using RemoteApiResults = std::vector< ionet::NodeInteractionResult >
 

Private Attributes

net::PacketIoPickerContainer m_packetIoPickers
 
NodesConsumer m_nodesConsumer
 

Detailed Description

Creates a batch peers requestor.

Member Typedef Documentation

◆ NodesConsumer

◆ RemoteApiResults

Constructor & Destructor Documentation

◆ BatchPeersRequestor()

catapult::nodediscovery::BatchPeersRequestor::BatchPeersRequestor ( const net::PacketIoPickerContainer packetIoPickers,
const NodesConsumer nodesConsumer 
)
explicit

Creates a requestor around packetIoPickers, which is used to find partners. Forwards found nodes to nodesConsumer.

Member Function Documentation

◆ findPeersOfPeers()

thread::future< BatchPeersRequestor::RemoteApiResults > catapult::nodediscovery::BatchPeersRequestor::findPeersOfPeers ( const utils::TimeSpan timeout) const

Finds and forwards peers of peers within the specified timeout.

Here is the call graph for this function:

Member Data Documentation

◆ m_nodesConsumer

NodesConsumer catapult::nodediscovery::BatchPeersRequestor::m_nodesConsumer
private

◆ m_packetIoPickers

net::PacketIoPickerContainer catapult::nodediscovery::BatchPeersRequestor::m_packetIoPickers
private

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