made it build without dht support

This commit is contained in:
Arvid Norberg 2008-01-18 02:02:18 +00:00
parent afa6fd97a3
commit 5ff6708b3d
1 changed files with 4 additions and 0 deletions

View File

@ -991,6 +991,8 @@ namespace detail
}
}
#ifndef TORRENT_DISABLE_DHT
void session_impl::on_receive_udp(udp::endpoint const& ep, char const* buf, int len)
{
if (len > 20 && *buf == 'd' && m_dht)
@ -999,6 +1001,8 @@ namespace detail
m_dht->on_receive(ep, buf, len);
}
}
#endif
void session_impl::async_accept(boost::shared_ptr<socket_acceptor> const& listener)
{