switched over to asio from boost-1.35
This commit is contained in:
@@ -113,7 +113,7 @@ namespace libtorrent
|
||||
#endif
|
||||
}
|
||||
|
||||
void udp_tracker_connection::name_lookup(asio::error_code const& error
|
||||
void udp_tracker_connection::name_lookup(error_code const& error
|
||||
, udp::resolver::iterator i)
|
||||
{
|
||||
if (error == asio::error::operation_aborted) return;
|
||||
@@ -156,7 +156,7 @@ namespace libtorrent
|
||||
|
||||
if (cb) cb->m_tracker_address = tcp::endpoint(target_address.address(), target_address.port());
|
||||
m_target = target_address;
|
||||
asio::error_code ec;
|
||||
error_code ec;
|
||||
m_socket.bind(udp::endpoint(bind_interface(), 0), ec);
|
||||
if (ec)
|
||||
{
|
||||
@@ -179,13 +179,13 @@ namespace libtorrent
|
||||
|
||||
void udp_tracker_connection::close()
|
||||
{
|
||||
asio::error_code ec;
|
||||
error_code ec;
|
||||
m_socket.close();
|
||||
m_name_lookup.cancel();
|
||||
tracker_connection::close();
|
||||
}
|
||||
|
||||
void udp_tracker_connection::on_receive(asio::error_code const& e
|
||||
void udp_tracker_connection::on_receive(error_code const& e
|
||||
, udp::endpoint const& ep, char const* buf, int size)
|
||||
{
|
||||
// ignore resposes before we've sent any requests
|
||||
@@ -305,7 +305,7 @@ namespace libtorrent
|
||||
detail::write_int32(m_transaction_id, ptr); // transaction_id
|
||||
TORRENT_ASSERT(ptr - buf == sizeof(buf));
|
||||
|
||||
asio::error_code ec;
|
||||
error_code ec;
|
||||
m_socket.send(m_target, buf, 16, ec);
|
||||
m_state = action_connect;
|
||||
++m_attempts;
|
||||
@@ -334,7 +334,7 @@ namespace libtorrent
|
||||
out += 20;
|
||||
TORRENT_ASSERT(out - buf == sizeof(buf));
|
||||
|
||||
asio::error_code ec;
|
||||
error_code ec;
|
||||
m_socket.send(m_target, buf, sizeof(buf), ec);
|
||||
m_state = action_scrape;
|
||||
++m_attempts;
|
||||
@@ -494,7 +494,7 @@ namespace libtorrent
|
||||
}
|
||||
#endif
|
||||
|
||||
asio::error_code ec;
|
||||
error_code ec;
|
||||
m_socket.send(m_target, buf, sizeof(buf), ec);
|
||||
m_state = action_announce;
|
||||
++m_attempts;
|
||||
|
Reference in New Issue
Block a user