summaryrefslogtreecommitdiff
path: root/src/netcomputer.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-18 12:55:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-18 12:55:41 +0000
commit3370b59fe2c9544fddebb1281505ddec3d22c0e1 (patch)
tree1e5ffa36ccf1a45cb678781acce65231df0c656e /src/netcomputer.cpp
parent5478d27cb1affe4c7be40dab32058ada95258a1f (diff)
downloadmanaserv-3370b59fe2c9544fddebb1281505ddec3d22c0e1.tar.gz
manaserv-3370b59fe2c9544fddebb1281505ddec3d22c0e1.tar.bz2
manaserv-3370b59fe2c9544fddebb1281505ddec3d22c0e1.tar.xz
manaserv-3370b59fe2c9544fddebb1281505ddec3d22c0e1.zip
Server now succesfully listens for connections, accepts them, receives some
data in a crude way and cleans up connection on client disconnect.
Diffstat (limited to 'src/netcomputer.cpp')
-rw-r--r--src/netcomputer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/netcomputer.cpp b/src/netcomputer.cpp
index 89317dc0..79110fd4 100644
--- a/src/netcomputer.cpp
+++ b/src/netcomputer.cpp
@@ -23,3 +23,14 @@
#include "netcomputer.h"
+
+NetComputer::NetComputer(ConnectionHandler *handler):
+ handler(handler)
+{
+}
+
+void NetComputer::disconnect(const std::string &reason)
+{
+ // Somehow notify the netsession listener about the disconnect after
+ // sending this computer a disconnect message containing the reason.
+}