Important: Please read the Qt Code of Conduct -

How to check TCP_KEEPIDLE, TCP_KEEPCNT, TCP_KEEPINTVL in Windows using QTCPSocket

  • I want to check the connection status of server from client . when the cable is removed, The QTCPSocket doesn't emit any signal saying that the server is disconnected , So in order to overcome this whether the options which are used in Linux OS such as TCP_KEEPIDLE, TCP_KEEPCNT, TCP_KEEPINTVL are available in QTCPSocket or is there any other way to detect the connection status .

    Thanks In Advance

  • This post is deleted!

  • Read the docs for QAbstractSocket. There are plenty of methods and signals for you to experiment with.

Log in to reply