Files
aliendefender/AdServer/connection.cpp
2020-06-15 22:22:46 +03:00

12 lines
299 B
C++

#include "connection.h"
Connection::Connection(int id, QTcpSocket *socket, QObject *parent) :
ClientBase(parent)
{
m_socket = socket;
m_id = id;
connect(m_socket,SIGNAL(readyRead()),this,SLOT(readData()));
connect(m_socket,SIGNAL(disconnected()),this,SLOT(Disconnection()));
}