summaryrefslogblamecommitdiffstats
path: root/src/core/pvsServer.cpp
blob: 916ad89fd971b34f5b1e240a2b8be2e210d5b733 (plain) (tree)





















                                                                       
#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);
}