23 #ifndef __PLUGINS_WEBVIEW_SERVICE_BROWSER_H_
24 #define __PLUGINS_WEBVIEW_SERVICE_BROWSER_H_
26 #include <netcomm/service_discovery/service.h>
27 #include <netcomm/service_discovery/browse_handler.h>
49 const char *host_name,
50 const struct sockaddr *addr,
51 const socklen_t addr_size,
53 std::list<std::string> &txt,
62 typedef std::map<std::string, fawkes::NetworkService *>
ServiceList;
69 ServiceList __service_list;
Fawkes library namespace.
virtual void service_removed(const char *name, const char *type, const char *domain)
A service has been removed from the network.
Interface for class that process browse results.
virtual void service_added(const char *name, const char *type, const char *domain, const char *host_name, const struct sockaddr *addr, const socklen_t addr_size, uint16_t port, std::list< std::string > &txt, int flags)
A service has been announced on the network.
virtual void cache_exhausted()
Cache exhausted.
Representation of a service announced or found via service discovery (i.e.
WebviewServiceBrowseHandler(fawkes::Logger *logger, fawkes::NetworkService *webview_service)
Constructor.
ServiceList & service_list()
Get the service list.
Browse handler to detect other Webview instances on the network.
virtual void all_for_now()
All results have been retrieved.
std::map< std::string, fawkes::NetworkService * > ServiceList
A map of services.
virtual void browse_failed(const char *name, const char *type, const char *domain)
Failed to browse for a given service.