mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-23 15:45:36 +02:00
pick random tunnel from LeaseSet
This commit is contained in:
parent
38cb57a4c4
commit
74a7f8c869
5 changed files with 28 additions and 11 deletions
|
@ -4,7 +4,6 @@
|
|||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
#include <set>
|
||||
#include "Identity.h"
|
||||
|
||||
namespace i2p
|
||||
|
@ -43,7 +42,7 @@ namespace data
|
|||
const Identity& GetIdentity () const { return m_Identity; };
|
||||
const IdentHash& GetIdentHash () const { return m_IdentHash; };
|
||||
const std::vector<Lease>& GetLeases () const { return m_Leases; };
|
||||
std::set<Lease> GetNonExpiredLeases () const;
|
||||
const std::vector<Lease> GetNonExpiredLeases () const;
|
||||
bool HasExpiredLeases () const;
|
||||
bool HasNonExpiredLeases () const;
|
||||
const uint8_t * GetEncryptionPublicKey () const { return m_EncryptionKey; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue