create inbound tunnels per local destination

This commit is contained in:
orignal 2014-03-14 15:13:34 -04:00
parent 7caa46b381
commit cba18faa87
7 changed files with 112 additions and 12 deletions

View file

@ -300,7 +300,7 @@ namespace stream
StreamingDestination * sharedLocalDestination = nullptr;
StreamingDestination::StreamingDestination (): m_LeaseSet (nullptr)
StreamingDestination::StreamingDestination (): m_TunnelPool (this), m_LeaseSet (nullptr)
{
// TODO: read from file later
m_Keys = i2p::data::CreateRandomKeys ();
@ -315,7 +315,17 @@ namespace stream
if (m_LeaseSet)
DeleteI2NPMessage (m_LeaseSet);
}
void StreamingDestination::Start ()
{
m_TunnelPool.CreateTunnels ();
}
void StreamingDestination::Stop ()
{
// TODO:
}
void StreamingDestination::HandleNextPacket (Packet * packet)
{
uint32_t sendStreamID = packet->GetSendStreamID ();