renamed torrent::interface() since it seems msvc won't allow it as an identifier

This commit is contained in:
Arvid Norberg 2005-11-02 19:19:41 +00:00
parent 3f38e4c38d
commit d7b1dda483
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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))
{