CatapultServer
v0.5.0.1 (Elephant)
|
BatchPeersRequestor(const net::PacketIoPickerContainer &packetIoPickers, const NodesConsumer &nodesConsumer)
Creates a requestor around packetIoPickers, which is used to find partners. Forwards found nodes to n...
Definition: BatchPeersRequestor.cpp:28
def warning(*args)
Definition: colorPrint.py:10
Represents a time duration.
Definition: TimeSpan.h:30
std::vector< ionet::NodeInteractionResult > RemoteApiResults
Definition: BatchPeersRequestor.h:33
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
net::PacketIoPickerContainer m_packetIoPickers
Definition: BatchPeersRequestor.h:44
Creates a batch peers requestor.
Definition: BatchPeersRequestor.h:30
NodesConsumer m_nodesConsumer
Definition: BatchPeersRequestor.h:45
#define CATAPULT_LOG_THROTTLE(LEVEL, THROTTLE_MILLIS)
Definition: ThrottleLogger.h:76
consumer< const ionet::NodeSet & > NodesConsumer
Definition: BatchPeersRequestor.h:32
A collection of packet io pickers.
Definition: PacketIoPickerContainer.h:28
Definition: AddressExtractionExtension.cpp:28
thread::future< RemoteApiResults > findPeersOfPeers(const utils::TimeSpan &timeout) const
Finds and forwards peers of peers within the specified timeout.
Definition: BatchPeersRequestor.cpp:33
std::vector< ionet::NodePacketIoPair > pickMatching(const utils::TimeSpan &ioDuration, ionet::NodeRoles roles) const
Definition: PacketIoPickerContainer.cpp:30
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35