summaryrefslogtreecommitdiff
path: root/src/service.cpp
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 /src/service.cpp
parent76d6f638df485d179899fa740b9bb53ee55ba7bc (diff)
Network: service interface and handling
Diffstat (limited to 'src/service.cpp')
-rw-r--r--src/service.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/service.cpp b/src/service.cpp
new file mode 100644
index 0000000..f8217c8
--- /dev/null
+++ b/src/service.cpp
@@ -0,0 +1,25 @@
+#include "service.h"
+
+using namespace erebos;
+
+Service::Service() = default;
+Service::~Service() = default;
+
+Service::Context::Context(Priv * p):
+ p(p)
+{}
+
+Service::Context::Priv & Service::Context::priv()
+{
+ return *p;
+}
+
+const Ref & Service::Context::ref() const
+{
+ return p->ref;
+}
+
+const Peer & Service::Context::peer() const
+{
+ return p->peer;
+}