Is there any way to dicover remote well-known names without being connected to any service?
To discover all the well known names being advertised you need to search for "*" which means that search for all the available names.
Call FindAdvertisedName with name that you are looking for as "*" or even "".
This does not require connection to any service whatsover since this is a part of the discovery mechanism.
How do I get a list (String names) of these available names?
Are you using Java or C++ ?
Look up FindAdvertisedName function. Here you pass in "*" as the name you are looking for.
There is a callback called FoundAdvertisedName which is called everytime the client's daemon finds a match for the name the client was looking for.
So to get a list available names "being advertised" the callback is called for everyname.
If you just want the names that are registered on your daemon you can call listNames that will return a list of names that are registered on the bus.
View our YouTube Channel Follow Us on Twitter Follow Us via RSS