fixes to allow-multiple-connections-per-ip and a unit test that run a swarm of 3 local peers

This commit is contained in:
Arvid Norberg
2007-06-08 23:02:31 +00:00
parent f1e87114b2
commit 6447a074eb
10 changed files with 220 additions and 28 deletions

View File

@@ -9,6 +9,7 @@
#include "libtorrent/extensions/metadata_transfer.hpp"
using boost::filesystem::remove_all;
using boost::tuples::ignore;
void test_transfer(bool clear_files = true, bool disconnect = false)
{
@@ -21,7 +22,7 @@ void test_transfer(bool clear_files = true, bool disconnect = false)
torrent_handle tor1;
torrent_handle tor2;
boost::tie(tor1, tor2) = setup_transfer(ses1, ses2, clear_files);
boost::tie(tor1, tor2, ignore) = setup_transfer(&ses1, &ses2, 0, clear_files);
for (int i = 0; i < 50; ++i)
{