-
Notifications
You must be signed in to change notification settings - Fork 48
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
Number of subscriptions #278
Comments
Yes, it is possible. For a reader you can find out about matching writers:
A similar trio of functions exists for a writer (the names change in the obvious way). The |
I wasn't paying enough attention, it seems. You created an issue on the python repository, so presumably you want to do it in Python, not in C 🤦 It seems those functions are not (currently) available in the Python binding. It should be a straightforward addition, so if I am really lucky you're willing to try adding it and doing a PR. Otherwise, I (or someone else) can probably find some time in the near future ... |
I can give it a shot, but maybe you can point me in the right direction. What is the mechanism used here for creating the python bindings. It doesn't seem to be pybind (which I am most familiar with)? |
For example: to add It would be @c_call("dds_get_subscription_matched_status")
def _get_subscription_matched_status(self, reader: dds_c_t.entity, status: dds_c_t.status) -> dds_c_t.returnv:
pass I don't think dds_c_t.status exists though. Maybe its just an int? |
It actually looks like someone has done this already: da14e5b |
Oh dear. Now I really feel terrible. Let me see if I can revive that effort, the basis of the binding hasn't changed so presumably it is still pretty close to what's needed. |
Is there a way to quickly find out if a reader or a writer has been matched without using a WaitSet or a listener, and if so how many subscribers are on the other end? And possibly who they are?
The text was updated successfully, but these errors were encountered: