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

17 lines
349 B
C++

#include "client.h"
Client::Client(QObject *parent) :
ClientBase(parent)
{
m_socket = new QTcpSocket();
connect(m_socket,SIGNAL(readyRead()),this,SLOT(readData()));
connect(m_socket,SIGNAL(disconnected()),this,SLOT(Disconnection()));
}
void Client::connectToServer(QHostAddress addr)
{
m_socket->connectToHost(addr,44461);
}