summaryrefslogtreecommitdiffstats
path: root/src/core/pvsServer.cpp
blob: 916ad89fd971b34f5b1e240a2b8be2e210d5b733 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
}