windows unicode fixes when using boost-1.34 and fix for test_swarm when building without encryption support

This commit is contained in:
Arvid Norberg
2007-06-11 19:01:25 +00:00
parent 6ff2d8accf
commit 07c8d1242e
2 changed files with 39 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
#include "libtorrent/session.hpp"
#include "libtorrent/session_settings.hpp"
#include "libtorrent/hasher.hpp"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
@@ -33,12 +34,14 @@ void test_swarm()
ses2.set_settings(settings);
ses3.set_settings(settings);
#ifndef TORRENT_DISABLE_ENCRYPTION
pe_settings pes;
pes.out_enc_policy = pe_settings::disabled;
pes.in_enc_policy = pe_settings::disabled;
ses1.set_pe_settings(pes);
ses2.set_pe_settings(pes);
ses3.set_pe_settings(pes);
#endif
torrent_handle tor1;
torrent_handle tor2;