*** empty log message ***
This commit is contained in:
@@ -584,7 +584,8 @@ namespace libtorrent
|
|||||||
|
|
||||||
void policy::peer_from_tracker(const address& remote, const peer_id& id)
|
void policy::peer_from_tracker(const address& remote, const peer_id& id)
|
||||||
{
|
{
|
||||||
if(remote.ip()==0 || remote.port()==0)
|
// just ignore the obviously invalid entries from the tracker
|
||||||
|
if(remote.ip() == 0 || remote.port() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@@ -33,7 +33,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <ios>
|
#include <ios>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
//#include <fstream>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@@ -41,7 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <boost/filesystem/convenience.hpp>
|
#include <boost/filesystem/convenience.hpp>
|
||||||
//#include <boost/filesystem/fstream.hpp>
|
#include <boost/filesystem/fstream.hpp>
|
||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
#include <boost/ref.hpp>
|
#include <boost/ref.hpp>
|
||||||
|
|
||||||
@@ -411,7 +410,7 @@ namespace libtorrent {
|
|||||||
|
|
||||||
// maps piece index to slot index. -1 means the piece
|
// maps piece index to slot index. -1 means the piece
|
||||||
// doesn't exist
|
// doesn't exist
|
||||||
enum { has_no_slot=-3 };
|
enum { has_no_slot = -3 };
|
||||||
std::vector<int> m_piece_to_slot;
|
std::vector<int> m_piece_to_slot;
|
||||||
// slots that hasn't had any file storage allocated
|
// slots that hasn't had any file storage allocated
|
||||||
std::vector<int> m_unallocated_slots;
|
std::vector<int> m_unallocated_slots;
|
||||||
@@ -421,10 +420,12 @@ namespace libtorrent {
|
|||||||
// index here is a slot number in the file
|
// index here is a slot number in the file
|
||||||
// if index>=0, the slot is assigned to this piece
|
// if index>=0, the slot is assigned to this piece
|
||||||
// otherwise it can have one of these values:
|
// 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
|
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;
|
std::vector<int> m_slot_to_piece;
|
||||||
|
|
||||||
boost::filesystem::path m_save_path;
|
boost::filesystem::path m_save_path;
|
||||||
|
Reference in New Issue
Block a user