From ce3329047d378a14006ce74ec273ac59e3375303 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 12 May 2010 19:42:27 +0200 Subject: initial import of latest svn version --- src/core/pvsServer.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/core/pvsServer.cpp (limited to 'src/core/pvsServer.cpp') diff --git a/src/core/pvsServer.cpp b/src/core/pvsServer.cpp new file mode 100644 index 0000000..916ad89 --- /dev/null +++ b/src/core/pvsServer.cpp @@ -0,0 +1,22 @@ +#include "pvsConnectionManager.h" +#undef Q_FOREACH +#include "pvsServer.h" + + +PVSServer::PVSServer(int port) + :PVSListenServer(port,0) +{ +} + + +void PVSServer::onClientConnected(PVSClientConnection* connected) +{ + PVSListenServer::onClientConnected(connected); + PVSConnectionManager::getManager()->onClientNew(connected); +} +void PVSServer::onClientDisconnected(PVSClientConnection* disconnected) +{ + PVSConnectionManager::getManager()->onClientRemove(disconnected); + PVSListenServer::onClientDisconnected(disconnected); +} + -- cgit v1.2.3-55-g7522