Qt Remote Objects: How to get informed when a new replica is connected to and disconnected from the source?
-
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?
-
Hi and welcome to devnet,
I haven't used that module but wouldn't QRemoteObjectNode::remoteObjectAdded be what you want ?
Hope it helps
-
Hi and welcome to devnet,
I haven't used that module but wouldn't QRemoteObjectNode::remoteObjectAdded be what you want ?
Hope it helps
@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
-
@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
Then isn't QRemoteObjectNode::remoteObjectAdded what you are looking for ?