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. RemoteObjects: signal when node or replica disconnects from host

RemoteObjects: signal when node or replica disconnects from host

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 479 Views
  • 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.
  • E Offline
    E Offline
    enricopapi
    wrote on last edited by
    #1

    Hello,

    I'm searching for an API of QtRemoteObject to detect when a remote client node (or even a specific replica if possible) disconnects from the registry/host.

    I've seen that this question has no answers on stackoverflow.

    I know the networking model of QtRO is kind of peer-to-peer, so it's hard to detected new connections or lost connections of remote node, but such feature would really help on our project.

    I've searched here in particular:
    https://doc.qt.io/qt-5/qremoteobjectregistry.html
    https://doc.qt.io/qt-5/qremoteobjectnode.html
    https://doc.qt.io/qt-5/qremoteobjecthost.html

    when I close the client qt application, i don't seen any related log on the host side:3ce739cb-7979-4f3e-92fe-6bdd1b5d18cc-image.png

    thanks for your support,
    regards,
    enrico

    JonBJ 1 Reply Last reply
    0
    • E enricopapi

      Hello,

      I'm searching for an API of QtRemoteObject to detect when a remote client node (or even a specific replica if possible) disconnects from the registry/host.

      I've seen that this question has no answers on stackoverflow.

      I know the networking model of QtRO is kind of peer-to-peer, so it's hard to detected new connections or lost connections of remote node, but such feature would really help on our project.

      I've searched here in particular:
      https://doc.qt.io/qt-5/qremoteobjectregistry.html
      https://doc.qt.io/qt-5/qremoteobjectnode.html
      https://doc.qt.io/qt-5/qremoteobjecthost.html

      when I close the client qt application, i don't seen any related log on the host side:3ce739cb-7979-4f3e-92fe-6bdd1b5d18cc-image.png

      thanks for your support,
      regards,
      enrico

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @enricopapi said in RemoteObjects: signal when node or replica disconnects from host:

      I've seen that this question has no answers on stackoverflow.

      Indeed. But do read the comments.

      My 2 cents, I have not used QtRO but if stateChanged/remoteObjectRemoved() signals are not being received/isReplicaValid() doesn't help, and the log shows no sign of the disconnection, does this not suggest lost connections are not detected? Like with sockets. As one of the comments suggests, you may have to implement heartbeat as the only way to notice something is no longer there? Only a guess based on reading.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        enricopapi
        wrote on last edited by enricopapi
        #3

        Hello, thanks for your reply.

        What we are searching for is a Signal or an API on the Host side, to know a replica has been destroyed or the client application just exited.

        Since the host has all the sources that push data to replicas, it would be usefull to know if a remote replica has been attached/detached from an host source.

        Sorry my question was not very clear.

        JonBJ 1 Reply Last reply
        0
        • E enricopapi

          Hello, thanks for your reply.

          What we are searching for is a Signal or an API on the Host side, to know a replica has been destroyed or the client application just exited.

          Since the host has all the sources that push data to replicas, it would be usefull to know if a remote replica has been attached/detached from an host source.

          Sorry my question was not very clear.

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @enricopapi said in RemoteObjects: signal when node or replica disconnects from host:

          it would be usefull to know if a remote replica has been attached/detached from an host source

          What evidence do you have that upon "or the client application just exited" then the host gets any notification at all?

          My reading of the SO posts etc. is that if the functions I mentioned do not help you would have to write your own "heartbeat" mechanism to detect a client "gone away". If that SO thread is exactly your question and you can see it got no answer other than the comments maybe that is indicative?

          E 1 Reply Last reply
          0
          • JonBJ JonB

            @enricopapi said in RemoteObjects: signal when node or replica disconnects from host:

            it would be usefull to know if a remote replica has been attached/detached from an host source

            What evidence do you have that upon "or the client application just exited" then the host gets any notification at all?

            My reading of the SO posts etc. is that if the functions I mentioned do not help you would have to write your own "heartbeat" mechanism to detect a client "gone away". If that SO thread is exactly your question and you can see it got no answer other than the comments maybe that is indicative?

            E Offline
            E Offline
            enricopapi
            wrote on last edited by
            #5

            @JonB Yes, it is indicative it has no answers. We will try to implement our "heartbeat" or a similar mechanism. thank you

            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