*** empty log message ***

This commit is contained in:
Arvid Norberg
2004-01-16 16:36:09 +00:00
parent b339a3a33d
commit c6ef357cdc
2 changed files with 9 additions and 7 deletions

View File

@@ -584,6 +584,7 @@ namespace libtorrent
void policy::peer_from_tracker(const address& remote, const peer_id& id)
{
// just ignore the obviously invalid entries from the tracker
if(remote.ip() == 0 || remote.port() == 0)
return;

View File

@@ -33,7 +33,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <ios>
#include <ctime>
#include <iostream>
//#include <fstream>
#include <iomanip>
#include <iterator>
#include <algorithm>
@@ -41,7 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/lexical_cast.hpp>
#include <boost/filesystem/convenience.hpp>
//#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/ref.hpp>
@@ -421,10 +420,12 @@ namespace libtorrent {
// index here is a slot number in the file
// if index>=0, the slot is assigned to this piece
// otherwise it can have one of these values:
enum {
enum
{
unallocated = -1, // the slot is unallocated
unassigned = -2 // the slot is allocated but not assigned to a piece
};
std::vector<int> m_slot_to_piece;
boost::filesystem::path m_save_path;