Library: Zeroconf
Package: ZeroCore
Header: Poco/Zeroconf/DomainListener.h
Convenience class to describe to domain specific Events at DNSServiceDiscovery.
Member Functions: disable, enable, onBrowseDomainError, onBrowseDomainFound, onBrowseDomainRemoved, onRegisterDomainError, onRegisterDomainFound, onRegisterDomainRemoved
Creates the DomainListener.
virtual ~DomainListener();
Destroys the DomainListener.
void disable(
bool browseEvents = true,
bool registerEvents = true
);
Disables event receiving. You must call this method, before your object is destroyed.
void enable(
bool browseEvents = true,
bool registerEvents = true
);
Enables event receiving. Call this method in the code of your subclass.
virtual void onBrowseDomainError(
const void * pSender,
DomainError & errCode
) = 0;
Called whenever an error occurred while searching for BrowseDomains
virtual void onBrowseDomainFound(
const void * pSender,
std::pair < DomainInfo,
bool > & arg
) = 0;
Called whenever a new Domain is found, 2nd value of arg, specifies if more events will follow immediately
virtual void onBrowseDomainRemoved(
const void * pSender,
std::pair < DomainInfo,
bool > & arg
) = 0;
Called whenever a Domain is removed, 2nd value of arg, specifies if more events will follow immediately
virtual void onRegisterDomainError(
const void * pSender,
DomainError & errCode
) = 0;
Called whenever an error occurred while searching for RegistrationDomains
virtual void onRegisterDomainFound(
const void * pSender,
std::pair < DomainInfo,
bool > & arg
) = 0;
Called whenever a new Domain is found, 2nd value of arg, specifies if more events will follow immediately
virtual void onRegisterDomainRemoved(
const void * pSender,
std::pair < DomainInfo,
bool > & arg
) = 0;
Called whenever a Domain is removed, 2nd value of arg, specifies if more events will follow immediately