Browse Source

fixed compilation error in gcc 4.6

pull/21/head
orignal 11 years ago
parent
commit
8d98722b46
  1. 6
      NetDb.cpp
  2. 2
      NetDb.h
  3. 14
      Reseed.cpp
  4. 13
      Reseed.h

6
NetDb.cpp

@ -45,7 +45,7 @@ namespace data @@ -45,7 +45,7 @@ namespace data
NetDb netdb;
NetDb::NetDb (): m_IsRunning (false), m_Thread (0)
NetDb::NetDb (): m_IsRunning (false), m_ReseedRetries (0), m_Thread (0)
{
}
@ -223,7 +223,7 @@ namespace data @@ -223,7 +223,7 @@ namespace data
if (reseed)
{
reseeder->reseedNow();
m_reseedRetries++;
m_ReseedRetries++;
}
int numRouters = 0;
boost::filesystem::directory_iterator end;
@ -244,7 +244,7 @@ namespace data @@ -244,7 +244,7 @@ namespace data
}
}
LogPrint (numRouters, " routers loaded");
if (numRouters < 100 && m_reseedRetries < 10)
if (numRouters < 100 && m_ReseedRetries < 10)
Load(directory, true); // Reseed
}

2
NetDb.h

@ -95,7 +95,7 @@ namespace data @@ -95,7 +95,7 @@ namespace data
std::map<IdentHash, RequestedDestination *> m_RequestedDestinations;
bool m_IsRunning;
int m_reseedRetries = 0;
int m_ReseedRetries;
std::thread * m_Thread;
i2p::util::Queue<I2NPMessage> m_Queue; // of I2NPDatabaseStoreMsg
};

14
Reseed.cpp

@ -10,6 +10,20 @@ namespace i2p @@ -10,6 +10,20 @@ namespace i2p
{
namespace data
{
static std::vector<std::string> httpReseedHostList = {
"http://193.150.121.66/netDb/",
"http://netdb.i2p2.no/",
"http://reseed.i2p-projekt.de/",
"http://cowpuncher.drollette.com/netdb/",
"http://i2p.mooo.com/netDb/",
"http://reseed.info/",
"http://reseed.pkol.de/",
"http://uk.reseed.i2p2.no/",
"http://i2p-netdb.innovatio.no/",
"http://ieb9oopo.mooo.com"
};
//TODO: Implement v2 reseeding. Lightweight zip library is needed.
//TODO: Implement SU3, utils.
Reseeder::Reseeder()

13
Reseed.h

@ -15,19 +15,6 @@ namespace data @@ -15,19 +15,6 @@ namespace data
Reseeder();
~Reseeder();
bool reseedNow();
private:
std::vector<std::string> httpReseedHostList = {
"http://193.150.121.66/netDb/",
"http://netdb.i2p2.no/",
"http://reseed.i2p-projekt.de/",
"http://cowpuncher.drollette.com/netdb/",
"http://i2p.mooo.com/netDb/",
"http://reseed.info/",
"http://reseed.pkol.de/",
"http://uk.reseed.i2p2.no/",
"http://i2p-netdb.innovatio.no/",
"http://ieb9oopo.mooo.com"
};
};
}

Loading…
Cancel
Save