Is it possible to retrieve Client information in case of multiple clients at the server side? #187
-
I have an application that contains multiple clients(proxies) interacting with server application. They have a common object path for now. I wanted to know if it's possible to retrieve the client or proxy instance information(for eg. client-ids) at the server side, so as to associate the requests made by client1, client2, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
This comment has been hidden.
This comment has been hidden.
-
@vk-gst Yes, a D-Bus message carries a |
Beta Was this translation helpful? Give feedback.
@vk-gst Yes, a D-Bus message carries a
sender
field, which you can query throughMessage::getSender()
. According to D-Bus specification, this is a unique name of the sending connection. So with this, you'd able to differentiate clients invoking a server method.