CatapultServer  v0.5.0.1 (Elephant)
NodeDiscoveryHandlers.h File Reference
Include dependency graph for NodeDiscoveryHandlers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::ionet
 
 catapult::handlers
 

Typedefs

using catapult::handlers::NodeConsumer = consumer< const ionet::Node & >
 Consumes a node. More...
 
using catapult::handlers::NodesConsumer = consumer< const ionet::NodeSet & >
 Consumes multiple nodes. More...
 
using catapult::handlers::NodesSupplier = supplier< ionet::NodeSet >
 Supplies nodes. More...
 

Functions

void catapult::handlers::RegisterNodeDiscoveryPushPingHandler (ionet::ServerPacketHandlers &handlers, model::NetworkIdentifier networkIdentifier, const NodeConsumer &nodeConsumer)
 
void catapult::handlers::RegisterNodeDiscoveryPullPingHandler (ionet::ServerPacketHandlers &handlers, const std::shared_ptr< const ionet::NetworkNode > &pLocalNode)
 
void catapult::handlers::RegisterNodeDiscoveryPushPeersHandler (ionet::ServerPacketHandlers &handlers, const NodesConsumer &nodesConsumer)
 Registers a node discovery push peers handler in handlers that forwards received nodes to nodesConsumer. More...
 
void catapult::handlers::RegisterNodeDiscoveryPullPeersHandler (ionet::ServerPacketHandlers &handlers, const NodesSupplier &nodesSupplier)
 Registers a node discovery pull peers handler in handlers that responds with nodes from nodesSupplier. More...