Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTcpSocket doesn't timeout

QTcpSocket doesn't timeout

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 673 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fahmouch
    wrote on last edited by
    #1

    Hi All,

    I am developing a client-server application using QTcpSocket. Each side turn on a specific computer and the two computer are connected to the same network.

    The communication between the server and the client goes well but when i disable the interface connection (wlan0) of the client computer, the socket state still "QAbstractSocket::ConnectedState"and it doesn't timeout.

    I tried to fix this problem by setting the KeepAliveOption but this didn't resolve the problem.

    Have you any idea how to disconnect the client when the interface is disabled?

    Any help would be appreciated.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved