You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ptserver.cpp 295B

123456789101112
  1. #include "ptserver.h"
  2. PTServer::PTServer(QObject *parent) : QTcpServer(parent)
  3. {
  4. connect(this, SIGNAL(newConnection()), this, SLOT(m_newConnection()));
  5. }
  6. void PTServer::m_newConnection()
  7. {
  8. PTSocket* client = dynamic_cast<PTSocket*>(nextPendingConnection());
  9. m_tempClients.append(client);
  10. }