more beos fixes
This commit is contained in:
@@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "libtorrent/io.hpp"
|
||||
#include <cstring>
|
||||
#include <boost/bind.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace libtorrent;
|
||||
|
||||
@@ -161,7 +162,8 @@ void test_reject_fast()
|
||||
boost::intrusive_ptr<torrent_info> t = ::create_torrent();
|
||||
sha1_hash ih = t->info_hash();
|
||||
session ses1(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48900, 49000), "0.0.0.0", 0);
|
||||
ses1.add_torrent(t, "./tmp1_fast");
|
||||
error_code ec;
|
||||
ses1.add_torrent(t, "./tmp1_fast", ec);
|
||||
|
||||
test_sleep(2000);
|
||||
|
||||
@@ -218,12 +220,12 @@ void test_respect_suggest()
|
||||
boost::intrusive_ptr<torrent_info> t = ::create_torrent();
|
||||
sha1_hash ih = t->info_hash();
|
||||
session ses1(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48900, 49000), "0.0.0.0", 0);
|
||||
ses1.add_torrent(t, "./tmp1_fast");
|
||||
error_code ec;
|
||||
ses1.add_torrent(t, "./tmp1_fast", ec);
|
||||
|
||||
test_sleep(2000);
|
||||
|
||||
io_service ios;
|
||||
error_code ec;
|
||||
stream_socket s(ios);
|
||||
s.connect(tcp::endpoint(address::from_string("127.0.0.1", ec), ses1.listen_port()), ec);
|
||||
|
||||
|
Reference in New Issue
Block a user