mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
process TunnelGateway message in tunnel thread
This commit is contained in:
parent
33bce67a4e
commit
82103e6a39
6 changed files with 48 additions and 35 deletions
3
Tunnel.h
3
Tunnel.h
|
@ -61,6 +61,7 @@ namespace tunnel
|
|||
bool HandleTunnelBuildResponse (uint8_t * msg, size_t len);
|
||||
|
||||
// implements TunnelBase
|
||||
void SendTunnelDataMsg (i2p::I2NPMessage * msg);
|
||||
void EncryptTunnelMsg (I2NPMessage * tunnelMsg);
|
||||
uint32_t GetNextTunnelID () const { return m_Config->GetFirstHop ()->tunnelID; };
|
||||
const i2p::data::IdentHash& GetNextIdentHash () const { return m_Config->GetFirstHop ()->router->GetIdentHash (); };
|
||||
|
@ -139,6 +140,8 @@ namespace tunnel
|
|||
|
||||
private:
|
||||
|
||||
void HandleTunnelGatewayMsg (TunnelBase * tunnel, I2NPMessage * msg);
|
||||
|
||||
void Run ();
|
||||
void ManageTunnels ();
|
||||
void ManageOutboundTunnels ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue