23 #ifndef _PLUGINS_WEBVIEW_SERVICE_BROWSER_H_ 24 #define _PLUGINS_WEBVIEW_SERVICE_BROWSER_H_ 26 #include <netcomm/service_discovery/browse_handler.h> 27 #include <netcomm/service_discovery/service.h> 44 virtual void browse_failed(
const char *name,
const char *type,
const char *domain);
48 const char * host_name,
49 const char * interface,
50 const struct sockaddr * addr,
51 const socklen_t addr_size,
53 std::list<std::string> &txt,
55 virtual void service_removed(
const char *name,
const char *type,
const char *domain);
60 typedef std::map<std::string, fawkes::NetworkService *>
ServiceList;
virtual void service_added(const char *name, const char *type, const char *domain, const char *host_name, const char *interface, 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.
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 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.