class ServiceSubscriber2

Defined at line 7463 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h

Discoverable protocol for finding service instances.

Public Members

static const char[] Name_

Public Methods

void ~ServiceSubscriber2 ()
void SubscribeToService (::std::string service, ::fuchsia::net::mdns::ServiceSubscriptionOptions options, ::fidl::InterfaceHandle< ::fuchsia::net::mdns::ServiceSubscriptionListener> listener)

Subscribes to a service. The subscription lasts until `subscriber` is unbound.

+ request `service` name of the type of service to which to subscribe. For example, cast

uses '_googlecast._tcp.'. If this value is not a valid service name, `subscriber` is

closed immediately and an error message is logged.

+ request `options` options to be applied to the subscription.

+ request `listener` client end of the `ServiceSubscriptionListener` channel.

void SubscribeToAllServices (::fuchsia::net::mdns::ServiceSubscriptionOptions options, ::fidl::InterfaceHandle< ::fuchsia::net::mdns::ServiceSubscriptionListener> listener)

Subscribes to all services. The subscription lasts until `subscriber` is unbound.

+ request `options` options to be applied to the subscription.

+ request `listener` client end of the `ServiceSubscriptionListener` channel.