#include "ptserver.h" PTServer::PTServer(QObject *parent) : QTcpServer(parent) { connect(this, SIGNAL(newConnection()), this, SLOT(m_newConnection())); } void PTServer::m_newConnection() { PTSocket* client = dynamic_cast(nextPendingConnection()); m_tempClients.append(client); }