diff options
Diffstat (limited to 'client/sendrecieve.cc')
-rw-r--r-- | client/sendrecieve.cc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/client/sendrecieve.cc b/client/sendrecieve.cc index 0a664eb..95593c6 100644 --- a/client/sendrecieve.cc +++ b/client/sendrecieve.cc @@ -30,8 +30,6 @@ #include <stdio.h> #include <QApplication> #include <QMessageBox> -#include <QTcpSocket> -#include <QDomDocument> #include <QByteArray> #include <QSettings> @@ -42,21 +40,16 @@ #include <unistd.h> #endif -SendRecieve::SendRecieve() +SendRecieve::SendRecieve(QString host, quint16 port) : QObject() { + this->host = host; + this->port = port; has_result = false; } void SendRecieve::tcpConnect() { - QSettings settings("pracro.ini", QSettings::IniFormat); - - settings.beginGroup("server"); - QString host = settings.value("host").toString(); - int port = settings.value("port").toInt(); - settings.endGroup(); - printf("%s, %d\n", host.toStdString().c_str(), port); tcpsocket->connectToHost(host, port); tcpConnected = TCP_CONNECTING; |