Skip to content

Is it possible to retrieve Client information in case of multiple clients at the server side? #187

Answered by sangelovic
vk-gst asked this question in Q&A
Discussion options

You must be logged in to vote

@vk-gst Yes, a D-Bus message carries a sender field, which you can query through Message::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.

Replies: 2 comments 1 reply

This comment has been hidden.

Comment options

You must be logged in to vote
1 reply
@sangelovic
Comment options

Answer selected by riuriuriu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #186 on May 20, 2021 13:06.