Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Function that controls the traffic in the network
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 :/
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..
requinham last edited by
I think you look for checking socket->state() (QTcpSocket::ConnectedState).
And you need to activate the keep alive system (check your OS documentation).
Thanks a lot! You saved my life