Hey @all,
i have a problem with my client/server application.
The application is to transfer files over a network. this works fine, but now checked the transfer over an VPN tunnel. and here comes the problem. After a while the client was transferin a file, I received a SocketTimoutError SIGNAL.
I've read some posts and find a resolution (on windows after a timeout is occured, the socket must be flushed so the rest of the data can be transfered.)
But when i tried this:
switch (socketError) {
cout << "SocketTimeoutError: Trying to flush" << endl;
QMap<QString, QVariant> empty_val;
sendMessage(GD_FLUSH, empty_val);
tcpSocket->flush();
void Client::displayError(QAbstractSocket::SocketError socketError) {
switch (socketError) {
case QAbstractSocket::SocketTimeoutError: {
cout << "SocketTimeoutError: Trying to flush" << endl;
QMap<QString, QVariant> empty_val;
sendMessage(GD_FLUSH, empty_val);
tcpSocket->flush();
To copy to clipboard, switch view to plain text mode
nothing happens, i got the message "SocketTimeoutError: Trying to flush" and that was it.
So my question is, how can i transfer over an VPN tunnel without timeout? And/Or Can i handle the timeout?
Regards NoRulez
Bookmarks