summaryrefslogtreecommitdiff
path: root/netfs/daemonService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netfs/daemonService.cpp')
-rw-r--r--netfs/daemonService.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/netfs/daemonService.cpp b/netfs/daemonService.cpp
new file mode 100644
index 0000000..ce3d70c
--- /dev/null
+++ b/netfs/daemonService.cpp
@@ -0,0 +1,20 @@
+#include "daemonService.h"
+
+ServiceServer::ServiceServer(DaemonGlobalStatePtr dgs) :
+ DaemonModule(dgs)
+{
+}
+
+Ice::Long
+ServiceServer::connect(const std::string & share, const std::string & auth, const Ice::Current &)
+{
+ DaemonGlobalState::NSP s = dgs->newSession(share);
+ return s.get<0>();
+}
+
+void
+ServiceServer::disconnect(Ice::Long tok, const Ice::Current &)
+{
+ dgs->endSession(tok);
+}
+