From 3cc464805f18b99e9ce23add943b16e6c75b0a70 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sun, 25 Oct 2015 10:55:20 -0400 Subject: [PATCH] update libsimulator submodule --- include/libtorrent/enum_net.hpp | 4 ++-- include/libtorrent/kademlia/node.hpp | 5 +++-- simulation/libsimulator | 2 +- src/kademlia/node.cpp | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/libtorrent/enum_net.hpp b/include/libtorrent/enum_net.hpp index 1b8db44f1..e777d0144 100644 --- a/include/libtorrent/enum_net.hpp +++ b/include/libtorrent/enum_net.hpp @@ -38,7 +38,6 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/aux_/disable_warnings_push.hpp" #include -#include #if TORRENT_USE_IFCONF || TORRENT_USE_NETLINK || TORRENT_USE_SYSCTL #include // for SO_BINDTODEVICE @@ -49,6 +48,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/io_service_fwd.hpp" #include "libtorrent/address.hpp" #include "libtorrent/error_code.hpp" +#include "libtorrent/socket.hpp" namespace libtorrent { @@ -119,7 +119,7 @@ namespace libtorrent address bind_to_device(io_service& ios, Socket& sock , bool ipv4, char const* device_name, int port, error_code& ec) { - boost::asio::ip::tcp::endpoint bind_ep(address_v4::any(), port); + tcp::endpoint bind_ep(address_v4::any(), port); address ip = address::from_string(device_name, ec); if (!ec) diff --git a/include/libtorrent/kademlia/node.hpp b/include/libtorrent/kademlia/node.hpp index 625d476a1..3f26a4d12 100644 --- a/include/libtorrent/kademlia/node.hpp +++ b/include/libtorrent/kademlia/node.hpp @@ -47,6 +47,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include +#include // for udp::endpoint #include #include #include @@ -93,7 +94,7 @@ struct key_desc_t // has to be divisible by the number, instead // of having that exact size size_divisible = 8 - }; + }; }; bool TORRENT_EXTRA_EXPORT verify_message(bdecode_node const& msg, key_desc_t const desc[] @@ -172,7 +173,7 @@ public: void announce(sha1_hash const& info_hash, int listen_port, int flags , boost::function const&)> f); - void direct_request(boost::asio::ip::udp::endpoint ep, entry& e + void direct_request(udp::endpoint ep, entry& e , boost::function f); void get_item(sha1_hash const& target, boost::function f); diff --git a/simulation/libsimulator b/simulation/libsimulator index fa1e83614..de8f9178b 160000 --- a/simulation/libsimulator +++ b/simulation/libsimulator @@ -1 +1 @@ -Subproject commit fa1e83614ca96b4802a4c6cea9488a93111be86d +Subproject commit de8f9178b63bc472a67f5f9654032034177f3c41 diff --git a/src/kademlia/node.cpp b/src/kademlia/node.cpp index 0c3461537..6fce3c431 100644 --- a/src/kademlia/node.cpp +++ b/src/kademlia/node.cpp @@ -407,7 +407,7 @@ void node::announce(sha1_hash const& info_hash, int listen_port, int flags , listen_port, info_hash, flags), flags & node::flag_seed); } -void node::direct_request(boost::asio::ip::udp::endpoint ep, entry& e +void node::direct_request(udp::endpoint ep, entry& e , boost::function f) { // not really a traversal