Servus  1.5.1
C++ network oriented utilities including a zeroconf implementation
servus::Listener Class Referenceabstract

A listener interface which can be implemented to listen on changes of a Servus instance. More...

#include <listener.h>

+ Collaboration diagram for servus::Listener:

Public Member Functions

virtual void instanceAdded (const std::string &instance)=0
 Called after a new instance was added after being discovered. More...
 
virtual void instanceRemoved (const std::string &instance)=0
 Called after an instance was removed from the list of discovered instances. More...
 

Detailed Description

A listener interface which can be implemented to listen on changes of a Servus instance.

Version
1.2

Definition at line 31 of file listener.h.

Member Function Documentation

virtual void servus::Listener::instanceAdded ( const std::string &  instance)
pure virtual

Called after a new instance was added after being discovered.

Parameters
instancethe name of the new instance
Version
1.2
virtual void servus::Listener::instanceRemoved ( const std::string &  instance)
pure virtual

Called after an instance was removed from the list of discovered instances.

Parameters
instancethe name of the instance that was removed.
Version
1.2

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