tcpSocket
->connectToHost
(QHostAddress("localhost"), quint16
(35310));
connect(tcpSocket, SIGNAL(connected()), this, SLOT(connectedToServer()));
connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(read()));
connect(tcpSocket, SIGNAL(disconnected()), this, SLOT(disconnected()));
tcpSocket->connectToHost(QHostAddress("localhost"), quint16(35310));
connect(tcpSocket, SIGNAL(connected()), this, SLOT(connectedToServer()));
connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(read()));
connect(tcpSocket, SIGNAL(disconnected()), this, SLOT(disconnected()));
To copy to clipboard, switch view to plain text mode
Bookmarks