diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-12-03 07:53:34 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-12-03 08:09:01 (GMT) |
commit | 9b3edba27b8683f1a87ad66ee05802dd93bbbdfc (patch) | |
tree | e78433ae108123ce370b6abdb1474ec5dcedc75a /Swiften/Network/PlatformDomainNameServiceQuery.cpp | |
parent | e15c6fd319af1303db47f00e78e4ec42d0605279 (diff) | |
download | swift-contrib-9b3edba27b8683f1a87ad66ee05802dd93bbbdfc.zip swift-contrib-9b3edba27b8683f1a87ad66ee05802dd93bbbdfc.tar.bz2 |
Added debugging output for DNS.
Diffstat (limited to 'Swiften/Network/PlatformDomainNameServiceQuery.cpp')
-rw-r--r-- | Swiften/Network/PlatformDomainNameServiceQuery.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Network/PlatformDomainNameServiceQuery.cpp b/Swiften/Network/PlatformDomainNameServiceQuery.cpp index 12afbb7..bc2138d 100644 --- a/Swiften/Network/PlatformDomainNameServiceQuery.cpp +++ b/Swiften/Network/PlatformDomainNameServiceQuery.cpp @@ -82,9 +82,11 @@ void PlatformDomainNameServiceQuery::doRun() { #else + std::cout << "SRV: Querying " << service << std::endl; ByteArray response; response.resize(NS_PACKETSZ); int responseLength = res_query(const_cast<char*>(service.getUTF8Data()), ns_c_in, ns_t_srv, reinterpret_cast<u_char*>(response.getData()), response.getSize()); + std::cout << "res_query done " << (responseLength != -1) << std::endl; if (responseLength == -1) { emitError(); return; @@ -162,6 +164,7 @@ void PlatformDomainNameServiceQuery::doRun() { safeToJoin = true; std::sort(records.begin(), records.end(), SRVRecordPriorityComparator()); + std::cout << "Sending out " << records.size() << " SRV results " << std::endl; MainEventLoop::postEvent(boost::bind(boost::ref(onResult), records)); } |