2014-01-31 07:22:11 +01:00
|
|
|
#ifndef RESEED_H
|
|
|
|
#define RESEED_H
|
|
|
|
|
2014-12-11 21:41:04 +01:00
|
|
|
#include <iostream>
|
2014-01-31 07:22:11 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace i2p
|
|
|
|
{
|
|
|
|
namespace data
|
|
|
|
{
|
|
|
|
|
|
|
|
class Reseeder
|
|
|
|
{
|
|
|
|
public:
|
2014-12-11 21:41:04 +01:00
|
|
|
|
2014-01-31 07:22:11 +01:00
|
|
|
Reseeder();
|
|
|
|
~Reseeder();
|
2014-12-11 21:41:04 +01:00
|
|
|
bool reseedNow(); // depreacted
|
|
|
|
int ReseedNowSU3 ();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int ReseedFromSU3 (const std::string& host);
|
2014-12-12 16:34:50 +01:00
|
|
|
int ProcessSU3File (const char * filename);
|
|
|
|
int ProcessSU3Stream (std::istream& s);
|
2014-12-12 19:36:02 +01:00
|
|
|
|
|
|
|
bool FindZipDataDescriptor (std::istream& s);
|
|
|
|
|
2014-01-31 07:22:11 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-20 20:29:22 +01:00
|
|
|
#endif
|