class PublicService


Module dnssd
Namespace DNSSD
Class PublicService
Inherits QObject,DNSSD::ServiceBase
\class PublicService publicservice.h DNSSD/PublicService

This class is most important for application that wants to announce its service on network. Suppose that you want to make your web server public - this is simplest way:

DNSSD.PublicService *service = new DNSSD.PublicService("My files","_http._tcp",80);
bool isOK = service->publish();

In this example publish() is synchronous - it will not return until publishing is complete. This is usually not too long but it can freeze application's GUI for a moment. Asynchronous publishing is better for responsiveness. Example:

DNSSD.PublicService *service = new DNSSD.PublicService("My files","_http._tcp",80);
connect(service,SIGNAL(published(bool)),this,SLOT(wasPublished(bool)));
service->publishAsync();

This class represents local service being published Author Jakub Stachowski



methods