Poco::Zeroconf

class DomainListener

Library: Zeroconf
Package: ZeroCore
Header: Poco/Zeroconf/DomainListener.h

Description

Convenience class to describe to domain specific Events at DNSServiceDiscovery.

Member Summary

Member Functions: disable, enable, onBrowseDomainError, onBrowseDomainFound, onBrowseDomainRemoved, onRegisterDomainError, onRegisterDomainFound, onRegisterDomainRemoved

Constructors

DomainListener

DomainListener();

Creates the DomainListener.

Destructor

~DomainListener virtual

virtual ~DomainListener();

Destroys the DomainListener.

Member Functions

disable

void disable(
    bool browseEvents = true,
    bool registerEvents = true
);

Disables event receiving. You must call this method, before your object is destroyed.

enable

void enable(
    bool browseEvents = true,
    bool registerEvents = true
);

Enables event receiving. Call this method in the code of your subclass.

onBrowseDomainError virtual

virtual void onBrowseDomainError(
    const void * pSender,
    DomainError & errCode
) = 0;

Called whenever an error occurred while searching for BrowseDomains

onBrowseDomainFound virtual

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

onBrowseDomainRemoved virtual

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

onRegisterDomainError virtual

virtual void onRegisterDomainError(
    const void * pSender,
    DomainError & errCode
) = 0;

Called whenever an error occurred while searching for RegistrationDomains

onRegisterDomainFound virtual

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

onRegisterDomainRemoved virtual

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