class ServiceBrowser


Module dnssd
Namespace DNSSD
Class ServiceBrowser
Inherits QObject
\class ServiceBrowser servicebrowser.h DNSSD/ServiceBrowser

Most important class for applications that want to discover specific services on network. Suppose that you need list of web servers running. Example:

DNSSD.ServiceBrowser* browser = new DNSSD.ServiceBrowser("_http._tcp");
connect(browser,SIGNAL(serviceAdded(RemoteService.Ptr)),this,SLOT(addService(RemoteService.Ptr)));
connect(browser,SIGNAL(serviceRemoved(RemoteService.Ptr)),this,SLOT(delService(RemoteService.Ptr)));
browser->startBrowse();

In above example addService will be called for every web server already running or just appearing on network and delService will be called when server is stopped. Because no domain was passed to constructor, default domain will be searched.

Author Jakub Stachowski Browsing for specific type of services or all available service types



enums

enum details

methods