diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-31 16:38:15 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-31 16:38:15 (GMT) |
commit | aa60aa80d2d170a536c246ef6c221f92de7dd8ed (patch) | |
tree | 04a03dbe10024cbb21c42dffc73560d3cba0329d /Swiften/LinkLocal/DNSSD/Bonjour | |
parent | d0f250d26bd1bdb405b2232159e7f84741d13e52 (diff) | |
download | swift-contrib-aa60aa80d2d170a536c246ef6c221f92de7dd8ed.zip swift-contrib-aa60aa80d2d170a536c246ef6c221f92de7dd8ed.tar.bz2 |
Adapt LinkLocalConnector to new LinkLocal infrastructure.
Diffstat (limited to 'Swiften/LinkLocal/DNSSD/Bonjour')
-rw-r--r-- | Swiften/LinkLocal/DNSSD/Bonjour/BonjourResolveHostnameQuery.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/LinkLocal/DNSSD/Bonjour/BonjourResolveHostnameQuery.h b/Swiften/LinkLocal/DNSSD/Bonjour/BonjourResolveHostnameQuery.h index 6e2a852..7b5f19a 100644 --- a/Swiften/LinkLocal/DNSSD/Bonjour/BonjourResolveHostnameQuery.h +++ b/Swiften/LinkLocal/DNSSD/Bonjour/BonjourResolveHostnameQuery.h @@ -12,7 +12,7 @@ namespace Swift { class BonjourQuerier; class BonjourResolveHostnameQuery : public DNSSDResolveHostnameQuery, public BonjourQuery { - public: + public: BonjourResolveHostnameQuery(const String& hostname, int interfaceIndex, boost::shared_ptr<BonjourQuerier> querier) : BonjourQuery(querier) { DNSServiceErrorType result = DNSServiceGetAddrInfo( &sdRef, 0, interfaceIndex, kDNSServiceProtocol_IPv4, @@ -33,6 +33,10 @@ namespace Swift { } } + void finish() { + BonjourQuery::finish(); + } + private: static void handleHostnameResolvedStatic(DNSServiceRef, DNSServiceFlags, uint32_t, DNSServiceErrorType errorCode, const char*, const struct sockaddr *address, uint32_t, void *context) { static_cast<BonjourResolveHostnameQuery*>(context)->handleHostnameResolved(errorCode, address); |