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. QRemoteObjectHost connected nodes
Qt 6.11 is out! See what's new in the release blog

QRemoteObjectHost connected nodes

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 808 Views 2 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.
  • beeckscheB Offline
    beeckscheB Offline
    beecksche
    wrote on last edited by
    #1

    Hi,
    is there a way to determine the number of connected clients of a QRemoteObjectHost object?

    QRemoteObjectHost host;
    host.setHostUrl(...); 
    host.enableRemoting(...); 
    ...
    // host.connectedNodes() ?
    
    Pl45m4P 1 Reply Last reply
    0
    • beeckscheB beecksche

      Hi,
      is there a way to determine the number of connected clients of a QRemoteObjectHost object?

      QRemoteObjectHost host;
      host.setHostUrl(...); 
      host.enableRemoting(...); 
      ...
      // host.connectedNodes() ?
      
      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @beecksche

      Dunno if it's the right signal but maybe

      • https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectAdded
      • https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectRemoved

      to keep track of the current connections yourself


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      beeckscheB 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @beecksche

        Dunno if it's the right signal but maybe

        • https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectAdded
        • https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectRemoved

        to keep track of the current connections yourself

        beeckscheB Offline
        beeckscheB Offline
        beecksche
        wrote on last edited by
        #3

        @Pl45m4 said in QRemoteObjectHost connected nodes:

        @beecksche

        Dunno if it's the right signal but maybe

        • https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectAdded
        • https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectRemoved

        to keep track of the current connections yourself

        That's what I thought at first. But if I understand the documentation correctly, the signal is emitted on enableRemoting(). The QRemoteObjectSourceLocation argument also contains no information about a client, only the hostUrl and typename.

        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