From d320928e8fa39cfcf1ff1fb5a700e91e2cf73e22 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 5 May 2007 20:00:28 +0000 Subject: [PATCH] more upnp logging and made the upnp test build again --- src/upnp.cpp | 3 ++- test/test_upnp.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/upnp.cpp b/src/upnp.cpp index 7c3aa968c..c4c9981db 100644 --- a/src/upnp.cpp +++ b/src/upnp.cpp @@ -566,7 +566,8 @@ void upnp::on_upnp_xml(asio::error_code const& e #ifdef TORRENT_UPNP_LOGGING m_log << time_now_string() - << " <== Rootdevice response, found control URL: " << s.control_url << std::endl; + << " <== Rootdevice response, found control URL: " << s.control_url + << " namespace: " << d.service_namespace << std::endl; #endif d.control_url = s.control_url; diff --git a/test/test_upnp.cpp b/test/test_upnp.cpp index 82a19df59..5948b5381 100644 --- a/test/test_upnp.cpp +++ b/test/test_upnp.cpp @@ -1,5 +1,6 @@ #include "libtorrent/upnp.hpp" #include "libtorrent/socket.hpp" +#include "libtorrent/connection_queue.hpp" #include #include @@ -20,8 +21,9 @@ int main(int argc, char* argv[]) std::cerr << "usage: " << argv[0] << " bind-address tcp-port udp-port" << std::endl; return 1; } - - upnp upnp_handler(ios, address_v4(), user_agent, &callback); + + connection_queue cc(ios); + upnp upnp_handler(ios, cc, address_v4(), user_agent, &callback); deadline_timer timer(ios); timer.expires_from_now(seconds(2));