more upnp logging and made the upnp test build again

This commit is contained in:
Arvid Norberg 2007-05-05 20:00:28 +00:00
parent 49bd69cad4
commit d320928e8f
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -1,5 +1,6 @@
#include "libtorrent/upnp.hpp"
#include "libtorrent/socket.hpp"
#include "libtorrent/connection_queue.hpp"
#include <boost/bind.hpp>
#include <boost/ref.hpp>
@ -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));