From d7b1dda483cd1acf78a31e3c8ad268682fb6d0db Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 2 Nov 2005 19:19:41 +0000 Subject: [PATCH] renamed torrent::interface() since it seems msvc won't allow it as an identifier --- include/libtorrent/torrent.hpp | 2 +- src/peer_connection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index b2087ef94..94782d5bc 100755 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -176,7 +176,7 @@ namespace libtorrent torrent_status status() const; void use_interface(const char* net_interface); - address const& interface() const { return m_net_interface; } + address const& get_interface() const { return m_net_interface; } peer_connection& connect_to_peer(const address& a); void set_ratio(float ratio) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index a2ec43f43..43bd4d52f 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2446,7 +2446,7 @@ namespace libtorrent m_queued = false; assert(m_connecting); assert(associated_torrent()); - m_socket->connect(m_remote, associated_torrent()->interface()); + m_socket->connect(m_remote, associated_torrent()->get_interface()); if (m_torrent->alerts().should_post(alert::debug)) {