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 --- src/service.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/service.cpp (limited to 'src/service.cpp') 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; +} -- cgit v1.2.3