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

Go to the source code of this file.

Classes

struct  catapult::extensions::SelectorSettings
 Settings used to initialize a selector task. More...
 

Namespaces

 catapult
 
 catapult::cache
 
 catapult::net
 
 catapult::extensions
 

Typedefs

using catapult::extensions::NodeAger = consumer< const utils::KeySet & >
 
using catapult::extensions::NodeSelector = supplier< NodeSelectionResult >
 A node selector. More...
 
using catapult::extensions::RemoveOnlyNodeSelector = supplier< utils::KeySet >
 A remove-only node selector. More...
 

Functions

NodeAger catapult::extensions::CreateNodeAger (ionet::ServiceIdentifier serviceId, const config::NodeConfiguration::ConnectionsSubConfiguration &config, ionet::NodeContainer &nodes)
 Creates and prepares a node ager that ages all serviceId connections in nodes given config. More...
 
NodeSelector catapult::extensions::CreateNodeSelector (const SelectorSettings &settings)
 
thread::Task catapult::extensions::CreateConnectPeersTask (const SelectorSettings &settings, net::PacketWriters &packetWriters)
 Creates a task for the specified service that connects to nodes with the specified role given settings and packetWriters. More...
 
thread::Task catapult::extensions::CreateConnectPeersTask (const SelectorSettings &settings, net::PacketWriters &packetWriters, const NodeSelector &selector)
 
RemoveOnlyNodeSelector catapult::extensions::CreateRemoveOnlyNodeSelector (const SelectorSettings &settings)
 
thread::Task catapult::extensions::CreateAgePeersTask (const SelectorSettings &settings, net::ConnectionContainer &connectionContainer)
 Creates a task for the specified service that ages nodes given settings and connectionContainer. More...
 
thread::Task catapult::extensions::CreateAgePeersTask (const SelectorSettings &settings, net::ConnectionContainer &connectionContainer, const RemoveOnlyNodeSelector &selector)