QtZeroConf
 All Classes Functions Variables Pages
Public Slots | Signals | Public Member Functions | List of all members
ZConfService Class Reference

This class provides Avahi Zeroconf service registration. It can be used by server applications to announce a service on the local area network. More...

Public Slots

void registerService (QString name, in_port_t port, QString type="_http._tcp")
void resetService ()

Signals

void entryGroupEstablished ()
void entryGroupNameCollision ()
void entryGroupFailure ()

Public Member Functions

 ZConfService (QObject *parent=0)
 ~ZConfService ()
bool isValid () const
QString errorString () const

Detailed Description

This class provides Avahi Zeroconf service registration. It can be used by server applications to announce a service on the local area network.

Typical use involves creating an instance of ZConfService and calling registerService() with a service name and port number.

Constructor & Destructor Documentation

ZConfService::~ZConfService ( )

Destroys the object and releases all resources associated with it.

Member Function Documentation

QString ZConfService::errorString ( ) const

Returns a human readable error string with details of the last error that occured.

bool ZConfService::isValid ( ) const

Returns true if the service group was added and commited without error.

void ZConfService::registerService ( QString  name,
in_port_t  port,
QString  type = "_http._tcp" 
)
slot

Registers a Zeroconf service on the LAN. If no service type is specified, "_http._tcp" is assumed. Needless to say, the server should be available and listen on the specified port.

void ZConfService::resetService ( )
slot

Deregisters the service associated with this object. You can reuse the same ZConfService object at any time to register another service on the network.


The documentation for this class was generated from the following files: