summaryrefslogtreecommitdiff
path: root/include/erebos
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-05-07 22:28:12 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-05-17 20:34:24 +0200
commit8386482fb9ee76bcfa79ba11915a9bcdf9745948 (patch)
tree675a88d31eabd7a6bf3a4c04912d7dbf7d85c0b7 /include/erebos
parent2d5508898e90c01680cab60295b9c1e8164d65da (diff)
Server function to manually add peer
Diffstat (limited to 'include/erebos')
-rw-r--r--include/erebos/network.h3
1 files changed, 3 insertions, 0 deletions
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<class S> S & svc();
class PeerList & peerList() const;
+ void addPeer(const string & node) const;
+ void addPeer(const string & node, const string & service) const;
struct Peer;
private: