From 240edf7494745dc4df2128644fe5c1a73ec2d513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 29 Feb 2020 20:38:38 +0100 Subject: Network: service interface and handling --- include/erebos/network.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/erebos/network.h') diff --git a/include/erebos/network.h b/include/erebos/network.h index 90c85a6..d730fb5 100644 --- a/include/erebos/network.h +++ b/include/erebos/network.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include @@ -9,7 +10,7 @@ namespace erebos { class Server { public: - Server(const Identity &); + Server(const Identity &, std::vector> &&); ~Server(); class PeerList & peerList() const; @@ -30,6 +31,9 @@ public: std::string name() const; std::optional identity() const; + bool hasChannel() const; + bool send(UUID, const Ref &) const; + private: std::shared_ptr p; }; -- cgit v1.2.3