mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
reseed from SU3
This commit is contained in:
parent
96851ab2fd
commit
3643d2f1da
4 changed files with 142 additions and 94 deletions
12
Reseed.h
12
Reseed.h
|
@ -1,6 +1,7 @@
|
|||
#ifndef RESEED_H
|
||||
#define RESEED_H
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -12,12 +13,19 @@ namespace data
|
|||
class Reseeder
|
||||
{
|
||||
public:
|
||||
|
||||
Reseeder();
|
||||
~Reseeder();
|
||||
bool reseedNow();
|
||||
bool reseedNow(); // depreacted
|
||||
int ReseedNowSU3 ();
|
||||
|
||||
private:
|
||||
|
||||
int ReseedFromSU3 (const std::string& host);
|
||||
};
|
||||
|
||||
void ProcessSU3File (const char * filename);
|
||||
int ProcessSU3File (const char * filename);
|
||||
int ProcessSU3Stream (std::istream& s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue