[Solved] Function that controls the traffic in the network
-
Hi all,
All is said in the title. I used before a function which periodically sends frames in the the network between client and server, in order to detect any problem of deconnection.
I forget the name :/
-
Hi,
Do you mean something like ping ?
-
Yes, the function in Qt just activates that "mechanism", but we need in addition some configuration in Windows or Linux..
-
Hi,
I think you look for checking socket->state() (QTcpSocket::ConnectedState).
And you need to activate the keep alive system (check your OS documentation).Regards,
Mohamed -
Thanks a lot! You saved my life