*** empty log message ***
This commit is contained in:
@@ -584,6 +584,7 @@ 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)
|
||||||
{
|
{
|
||||||
|
// just ignore the obviously invalid entries from the tracker
|
||||||
if(remote.ip() == 0 || remote.port() == 0)
|
if(remote.ip() == 0 || remote.port() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
|
||||||
@@ -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
|
unallocated = -1, // the slot is unallocated
|
||||||
unassigned = -2 // the slot is allocated but not assigned to a piece
|
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