take LeaseSet from GarlicDestination

This commit is contained in:
orignal 2014-10-07 21:08:00 -04:00
parent 49d67bada0
commit fccadb752f
5 changed files with 29 additions and 28 deletions

View file

@ -23,7 +23,6 @@ namespace stream
StreamingDestination (boost::asio::io_service& service, const i2p::data::PrivateKeys& keys, bool isPublic);
~StreamingDestination ();
const i2p::data::LeaseSet * GetLeaseSet ();
i2p::tunnel::TunnelPool * GetTunnelPool () const { return m_Pool; };
Stream * CreateNewOutgoingStream (const i2p::data::LeaseSet& remote);
@ -44,6 +43,9 @@ namespace stream
const uint8_t * GetEncryptionPublicKey () const { return m_EncryptionPublicKey; };
void SetLeaseSetUpdated ();
// implements GarlicDestination
const i2p::data::LeaseSet * GetLeaseSet ();
private:
Stream * CreateNewIncomingStream ();