class SvcDirectoryWatcher
Defined at line 4039 of file fidling/gen/sdk/fidl/fuchsia.weave/fuchsia.weave/hlcpp/fuchsia/weave/cpp/fidl.h
Watches for changes in Weave Service Directory entries for a particular endpoint
ID. The endpoint ID is specified in, and this protocol retrieved from
[`fuchsia.weave/Stack.GetServiceDirectoryWatcher`].
Public Methods
void ~SvcDirectoryWatcher ()
void WatchServiceDirectory (WatchServiceDirectoryCallback callback)
Returns a vector of HostPorts for the watched endpoint ID.
First call returns the current list of HostPorts or blocks until the list
is available from the service. Subsequent calls will block until a new
ServiceDirectory lookup is made and will return the list associated with
the watched endpoint ID, which may or may not be the same as prior values.
Calling WatchServiceDirectory when a previous call is still pending will
cause the channel to be closed with `ZX_ERR_BAD_STATE`.