moved UDP trackers over to use a single socket

This commit is contained in:
Arvid Norberg
2010-05-30 01:33:03 +00:00
parent c796157f81
commit cdf05a9c9c
8 changed files with 160 additions and 162 deletions

View File

@@ -252,6 +252,17 @@ namespace libtorrent
con->start();
}
bool tracker_manager::incoming_udp(error_code const& e
, udp::endpoint const& ep, char const* buf, int size)
{
for (tracker_connections_t::iterator i = m_connections.begin()
, end(m_connections.end()); i != end; ++i)
{
if ((*i)->on_receive(e, ep, buf, size)) return true;
}
return false;
}
void tracker_manager::abort_all_requests(bool all)
{
// removes all connections from m_connections