diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-18 12:55:41 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-18 12:55:41 +0000 |
commit | 3370b59fe2c9544fddebb1281505ddec3d22c0e1 (patch) | |
tree | 1e5ffa36ccf1a45cb678781acce65231df0c656e /src/netcomputer.cpp | |
parent | 5478d27cb1affe4c7be40dab32058ada95258a1f (diff) | |
download | manaserv-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.cpp | 11 |
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. +} |