123456789101112 |
- #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<PTSocket*>(nextPendingConnection());
- m_tempClients.append(client);
- }
|