split between CreateSession and CreateSessionThrough Introducer

This commit is contained in:
orignal 2015-11-26 16:20:24 -05:00
parent 3c8e331809
commit d69f297c05
2 changed files with 79 additions and 54 deletions

1
SSU.h
View file

@ -41,6 +41,7 @@ namespace transport
void Start ();
void Stop ();
void CreateSession (std::shared_ptr<const i2p::data::RouterInfo> router, bool peerTest = false);
void CreateSessionThroughIntroducer (std::shared_ptr<const i2p::data::RouterInfo> router, bool peerTest = false);
std::shared_ptr<SSUSession> FindSession (std::shared_ptr<const i2p::data::RouterInfo> router) const;
std::shared_ptr<SSUSession> FindSession (const boost::asio::ip::udp::endpoint& e) const;
std::shared_ptr<SSUSession> GetRandomEstablishedSession (std::shared_ptr<const SSUSession> excluded);