summaryrefslogtreecommitdiffstats
path: root/src/core/pvsServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/pvsServer.cpp')
-rw-r--r--src/core/pvsServer.cpp22
1 files changed, 22 insertions, 0 deletions
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);
+}
+