mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-26 00:55:36 +02:00
parse introducers from RouterInfo
This commit is contained in:
parent
b14cdc8052
commit
354015e9ca
2 changed files with 32 additions and 1 deletions
12
RouterInfo.h
12
RouterInfo.h
|
@ -32,6 +32,14 @@ namespace data
|
|||
eTransportSSU
|
||||
};
|
||||
|
||||
struct Introducer
|
||||
{
|
||||
boost::asio::ip::address iHost;
|
||||
int iPort;
|
||||
uint8_t iKey[32];
|
||||
uint32_t iTag;
|
||||
};
|
||||
|
||||
struct Address
|
||||
{
|
||||
TransportStyle transportStyle;
|
||||
|
@ -39,7 +47,9 @@ namespace data
|
|||
int port;
|
||||
uint64_t date;
|
||||
uint8_t cost;
|
||||
uint8_t key[32]; // into key for SSU
|
||||
// SSU only
|
||||
uint8_t key[32]; // intro key for SSU
|
||||
std::vector<Introducer> introducers;
|
||||
};
|
||||
|
||||
RouterInfo (const char * filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue