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. Qt Remote Objects: How to get informed when a new replica is connected to and disconnected from the source?

Qt Remote Objects: How to get informed when a new replica is connected to and disconnected from the source?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 475 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.
  • C Offline
    C Offline
    CrSjimo
    wrote on last edited by
    #1

    Hi everyone,

    I am using Qt Remote Objects for IPC. The host wants to do something when a new replica is connected to and disconnected from the source (just like the signal QLocalSocket::connected and disconnected). I do know the replica can invoke a specific slot function when connected and disconnected, but if the client process crashes, the connection will break without invoking that function.

    So, how to do this with Qt Remote Objects?

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

      Hi and welcome to devnet,

      I haven't used that module but wouldn't QRemoteObjectNode::remoteObjectAdded be what you want ?

      Hope it helps

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

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        I haven't used that module but wouldn't QRemoteObjectNode::remoteObjectAdded be what you want ?

        Hope it helps

        C Offline
        C Offline
        CrSjimo
        wrote on last edited by
        #3

        @SGaist The docs say this signal is emitted when a new source is added to the registry that a QRemoteObjectNode is connected to, and it is emitted at the client side. But I want a signal at the server side, from QRemoteObjectHost, emitted when a new replica is connected to the source

        SGaistS 1 Reply Last reply
        0
        • C CrSjimo

          @SGaist The docs say this signal is emitted when a new source is added to the registry that a QRemoteObjectNode is connected to, and it is emitted at the client side. But I want a signal at the server side, from QRemoteObjectHost, emitted when a new replica is connected to the source

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then isn't QRemoteObjectNode::remoteObjectAdded what you are looking for ?

          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

          • Login

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