summaryrefslogtreecommitdiff
path: root/include/erebos/network.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2020-02-29 20:38:38 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2020-03-10 21:47:29 +0100
commit240edf7494745dc4df2128644fe5c1a73ec2d513 (patch)
treea952721545715e4d131c1fcc29c0f872d6a3bfbe /include/erebos/network.h
parent76d6f638df485d179899fa740b9bb53ee55ba7bc (diff)
Network: service interface and handling
Diffstat (limited to 'include/erebos/network.h')
-rw-r--r--include/erebos/network.h6
1 files changed, 5 insertions, 1 deletions
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 <erebos/identity.h>
+#include <erebos/service.h>
#include <functional>
@@ -9,7 +10,7 @@ namespace erebos {
class Server
{
public:
- Server(const Identity &);
+ Server(const Identity &, std::vector<std::unique_ptr<Service>> &&);
~Server();
class PeerList & peerList() const;
@@ -30,6 +31,9 @@ public:
std::string name() const;
std::optional<Identity> identity() const;
+ bool hasChannel() const;
+ bool send(UUID, const Ref &) const;
+
private:
std::shared_ptr<Priv> p;
};