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. [Solved] Function that controls the traffic in the network
Qt 6.11 is out! See what's new in the release blog

[Solved] Function that controls the traffic in the network

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.3k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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 :/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean something like ping ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Yes, the function in Qt just activates that "mechanism", but we need in addition some configuration in Windows or Linux..

        1 Reply Last reply
        0
        • R Offline
          R Offline
          requinham
          wrote on last edited by
          #4

          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

          Regards,
          Mohamed Hamzaoui

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @requinham

            Thanks a lot! You saved my life

            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