try to fix #103
This commit is contained in:
parent
e3158c3107
commit
d8537937c7
|
@ -273,6 +273,9 @@ namespace libtorrent { namespace dht
|
||||||
udp::endpoint ep(listen_interface, listen_port);
|
udp::endpoint ep(listen_interface, listen_port);
|
||||||
m_socket.open(ep.protocol());
|
m_socket.open(ep.protocol());
|
||||||
m_socket.bind(ep);
|
m_socket.bind(ep);
|
||||||
|
m_socket.async_receive_from(asio::buffer(&m_in_buf[m_buffer][0]
|
||||||
|
, m_in_buf[m_buffer].size()), m_remote_endpoint[m_buffer]
|
||||||
|
, m_strand.wrap(bind(&dht_tracker::on_receive, self(), _1, _2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void dht_tracker::tick(asio::error_code const& e)
|
void dht_tracker::tick(asio::error_code const& e)
|
||||||
|
|
Loading…
Reference in New Issue