CatapultServer  v0.5.0.1 (Elephant)
NodeSubscriber.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include "catapult/types.h"
24 
25 namespace catapult { namespace ionet { class Node; } }
26 
27 namespace catapult { namespace subscribers {
28 
31  public:
32  virtual ~NodeSubscriber() = default;
33 
34  public:
36  virtual void notifyNode(const ionet::Node& node) = 0;
37 
39  virtual void notifyIncomingNode(const Key& identityKey, ionet::ServiceIdentifier serviceId) = 0;
40  };
41 }}
NodeInfo.h
catapult::subscribers::NodeSubscriber
Node subscriber.
Definition: NodeSubscriber.h:30
catapult::subscribers::NodeSubscriber::notifyIncomingNode
virtual void notifyIncomingNode(const Key &identityKey, ionet::ServiceIdentifier serviceId)=0
Indicates a new incoming connection for node with identityKey connected to serviceId.
catapult::utils::BaseValue< uint32_t, ServiceIdentifier_tag >
catapult::subscribers::NodeSubscriber::~NodeSubscriber
virtual ~NodeSubscriber()=default
types.h
Node
ionet::Node Node
Definition: PacketWriters.cpp:45
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::ionet::Node
A node in the catapult network.
Definition: Node.h:82
catapult::subscribers::NodeSubscriber::notifyNode
virtual void notifyNode(const ionet::Node &node)=0
Indicates a new node was found.