mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-21 05:18:19 +02:00
separate class TransitTunnelBuildMsgHandler for tunnel build messages
This commit is contained in:
parent
3c608ec07c
commit
0c5f39ad81
4 changed files with 23 additions and 8 deletions
libi2pd
|
@ -482,10 +482,12 @@ namespace tunnel
|
|||
{
|
||||
m_IsRunning = true;
|
||||
m_Thread = new std::thread (std::bind (&Tunnels::Run, this));
|
||||
m_TransitTunnelBuildMsgHandler.Start ();
|
||||
}
|
||||
|
||||
void Tunnels::Stop ()
|
||||
{
|
||||
m_TransitTunnelBuildMsgHandler.Stop ();
|
||||
m_IsRunning = false;
|
||||
m_Queue.WakeUp ();
|
||||
if (m_Thread)
|
||||
|
@ -654,7 +656,7 @@ namespace tunnel
|
|||
return;
|
||||
}
|
||||
else
|
||||
i2p::tunnel::HandleShortTransitTunnelBuildMsg (msg);
|
||||
m_TransitTunnelBuildMsgHandler.HandleShortTransitTunnelBuildMsg (std::move (msg));
|
||||
}
|
||||
|
||||
void Tunnels::HandleVariableTunnelBuildMsg (std::shared_ptr<I2NPMessage> msg)
|
||||
|
@ -677,7 +679,7 @@ namespace tunnel
|
|||
}
|
||||
}
|
||||
else
|
||||
i2p::tunnel::HandleVariableTransitTunnelBuildMsg (msg);
|
||||
m_TransitTunnelBuildMsgHandler.HandleVariableTransitTunnelBuildMsg (std::move (msg));
|
||||
}
|
||||
|
||||
void Tunnels::HandleTunnelBuildReplyMsg (std::shared_ptr<I2NPMessage> msg, bool isShort)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue