support multiple transport sessions to the same peer

This commit is contained in:
orignal 2015-06-09 11:00:37 -04:00
parent c896f6d0d7
commit e461982a31
2 changed files with 25 additions and 23 deletions

View file

@ -60,10 +60,16 @@ namespace transport
{
int numAttempts;
std::shared_ptr<const i2p::data::RouterInfo> router;
std::shared_ptr<TransportSession> session;
std::list<std::shared_ptr<TransportSession> > sessions;
uint64_t creationTime;
std::vector<i2p::I2NPMessage *> delayedMessages;
void Done ()
{
for (auto it: sessions)
it->Done ();
}
~Peer ()
{
for (auto it :delayedMessages)