CatapultServer
v0.5.0.1 (Elephant)
|
Creates a batch peers requestor. More...
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< RemoteApiResults > | findPeersOfPeers (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 |
Creates a batch peers requestor.
|
private |
|
private |
|
explicit |
Creates a requestor around packetIoPickers, which is used to find partners. Forwards found nodes to nodesConsumer.
thread::future< BatchPeersRequestor::RemoteApiResults > catapult::nodediscovery::BatchPeersRequestor::findPeersOfPeers | ( | const utils::TimeSpan & | timeout | ) | const |
Finds and forwards peers of peers within the specified timeout.
|
private |
|
private |