Poco::DNSSD::Bonjour

class BonjourBrowserImpl

File Information

Library: DNSSD/Bonjour
Package: Implementation
Header: Poco/DNSSD/Bonjour/BonjourBrowserImpl.h

Description

The DNSSDBrowser implementation for Bonjour.

Inheritance

Direct Base Classes: Poco::DNSSD::DNSSDBrowser

All Base Classes: Poco::DNSSD::DNSSDBrowser

Member Summary

Member Functions: browse, cancel, enumerateBrowseDomains, enumerateRegistrationDomains, onBrowseReply, onEnumerateBrowseDomainsReply, onEnumerateRegistrationDomainsReply, onQueryRecordReply, onResolveHostReply, onResolveReply, parseTXTRecord, queryRecord, resolve, resolveHost

Inherited Functions: browse, cancel, enumerateBrowseDomains, enumerateRegistrationDomains, queryRecord, resolve, resolveHost

Constructors

BonjourBrowserImpl

BonjourBrowserImpl(
    EventLoop & eventLoop
);

Creates the BonjourBrowserImpl.

Destructor

~BonjourBrowserImpl virtual

~BonjourBrowserImpl();

Destroys the BonjourBrowserImpl.

Member Functions

browse virtual

BrowseHandle browse(
    const std::string & regType,
    const std::string & domain,
    int options,
    Poco::Int32 networkInterface
);

cancel virtual

void cancel(
    BrowseHandle & browseHandle
);

enumerateBrowseDomains virtual

BrowseHandle enumerateBrowseDomains(
    Poco::Int32 networkInterface
);

enumerateRegistrationDomains virtual

BrowseHandle enumerateRegistrationDomains(
    Poco::Int32 networkInterface
);

onBrowseReply

void onBrowseReply(
    DNSServiceRef sdRef,
    DNSServiceFlags flags,
    uint32_t interfaceIndex,
    DNSServiceErrorType errorCode,
    const char * serviceName,
    const char * regtype,
    const char * domain
);

onEnumerateBrowseDomainsReply

void onEnumerateBrowseDomainsReply(
    DNSServiceRef sdRef,
    DNSServiceFlags flags,
    uint32_t interfaceIndex,
    DNSServiceErrorType errorCode,
    const char * replyDomain
);

onEnumerateRegistrationDomainsReply

void onEnumerateRegistrationDomainsReply(
    DNSServiceRef sdRef,
    DNSServiceFlags flags,
    uint32_t interfaceIndex,
    DNSServiceErrorType errorCode,
    const char * replyDomain
);

onQueryRecordReply

void onQueryRecordReply(
    DNSServiceRef sdRef,
    DNSServiceFlags flags,
    uint32_t interfaceIndex,
    DNSServiceErrorType errorCode,
    const char * fullName,
    uint16_t rrtype,
    uint16_t rrclass,
    uint16_t rdlen,
    const void * rdata,
    uint32_t ttl
);

onResolveHostReply

void onResolveHostReply(
    DNSServiceRef sdRef,
    DNSServiceFlags flags,
    uint32_t interfaceIndex,
    DNSServiceErrorType errorCode,
    const char * hostname,
    const struct sockaddr * address,
    uint32_t ttl
);

onResolveReply

void onResolveReply(
    DNSServiceRef sdRef,
    DNSServiceFlags flags,
    uint32_t interfaceIndex,
    DNSServiceErrorType errorCode,
    const char * fullName,
    const char * host,
    uint16_t port,
    uint16_t txtLen,
    const unsigned char * txtRecord
);

queryRecord virtual

BrowseHandle queryRecord(
    const std::string & name,
    Poco::UInt16 type,
    Poco::UInt16 clazz,
    int options,
    Poco::Int32 networkInterface
);

resolve virtual

BrowseHandle resolve(
    const Service & service,
    int options
);

resolveHost virtual

BrowseHandle resolveHost(
    const std::string & host,
    int options,
    Poco::Int32 networkInterface
);

parseTXTRecord protected static

static void parseTXTRecord(
    Poco::UInt16 length,
    const void * data,
    Service::Properties & properties
);

Securely control IoT edge devices from anywhere   Connect a Device