From 8386482fb9ee76bcfa79ba11915a9bcdf9745948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 7 May 2023 22:28:12 +0200 Subject: Server function to manually add peer --- include/erebos/network.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/erebos') diff --git a/include/erebos/network.h b/include/erebos/network.h index ed31823..66edfa4 100644 --- a/include/erebos/network.h +++ b/include/erebos/network.h @@ -14,6 +14,7 @@ using std::vector; using std::unique_ptr; class ServerConfig; +class Peer; class Server { @@ -33,6 +34,8 @@ public: template S & svc(); class PeerList & peerList() const; + void addPeer(const string & node) const; + void addPeer(const string & node, const string & service) const; struct Peer; private: -- cgit v1.2.3