From 3370b59fe2c9544fddebb1281505ddec3d22c0e1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 18 Apr 2005 12:55:41 +0000 Subject: Server now succesfully listens for connections, accepts them, receives some data in a crude way and cleans up connection on client disconnect. --- src/netcomputer.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/netcomputer.cpp') 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. +} -- cgit v1.2.3-70-g09d2