Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for client tracking #57

Open
lechndo opened this issue Jun 3, 2019 · 3 comments
Open

Support for client tracking #57

lechndo opened this issue Jun 3, 2019 · 3 comments

Comments

@lechndo
Copy link

lechndo commented Jun 3, 2019

Hi guys,

first I want to thank you all for this cool new DBus lib.

I just started an evaluation to to see if the lib fits our needs and after a minor issue with Unix FD support I came across another use case that is essential for us:
Client Tracking
From what I've seen this seems not to be supported by sdbus-cpp but seems to be in the underlying sdbus lib (via sd_bus_track_add_sender etc.).

Is there a way for doing such things in sdbus-cpp that I missed or if it's not is there a plan for adding such functionality?

Thank you in advance...

@sangelovic
Copy link
Collaborator

sangelovic commented Jun 3, 2019 via email

@lechndo
Copy link
Author

lechndo commented Jun 3, 2019

Thx for the quick reply.

Unfortunately I'm not yet familiar with the underlying sd-bus lib. I just had a quick look on the functions in sd-bus.h and saw the functions for setting up some kind of message sender tracking.
But I will continue digging...

We previously used dbus-c++ lib and there we just got the messages sender name and then set up a match expression for it to detect when the owner disappears from the bus.
To be able switch to sdbus-c++ we need some similar way for tracking nodes that invoked some special locking methods to be able to automatically release the locks when the node dies.

For sure it will be possible to add such a feature on our own and contribute it back.
I just wanted to make sure that I didn't miss some existing way for doing such things.

Thx for now.
Maybe I'll be back in the future with further questions or points for a discussion or even better with a suggestions for a working implementation. 😁

@lechndo
Copy link
Author

lechndo commented Jul 1, 2019

Hi guys,
I started playing around with fetching sender name to get more familiar with stuff required for sender tracking.

Could someone please tell me if my approach might be a problem in multi threaded environments or in other situations (e.g. DBus calls executed during method or signal processing).

I want to avoid design flaws but at the moment I have absolutely no idea which things might be a problem in case of multiple threads.

0001-Add-methods-for-fetching-sender-of-current-message.zip

Thx in advance...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants