From 3716b6f98870efa51170e3860705e7d8d9fcc595 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 1 May 2022 23:40:00 +0300 Subject: [PATCH] move TunnelHopVisitor inside Tunnel class Signed-off-by: R4SAS --- libi2pd/Tunnel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libi2pd/Tunnel.h b/libi2pd/Tunnel.h index bc95601e..c391b512 100644 --- a/libi2pd/Tunnel.h +++ b/libi2pd/Tunnel.h @@ -44,9 +44,6 @@ namespace tunnel const size_t I2NP_TUNNEL_MESSAGE_SIZE = TUNNEL_DATA_MSG_SIZE + I2NP_HEADER_SIZE + 34; // reserved for alignment and NTCP 16 + 6 + 12 const size_t I2NP_TUNNEL_ENPOINT_MESSAGE_SIZE = 2*TUNNEL_DATA_MSG_SIZE + I2NP_HEADER_SIZE + TUNNEL_GATEWAY_HEADER_SIZE + 28; // reserved for alignment and NTCP 16 + 6 + 6 - /** function for visiting a hops stored in a tunnel */ - typedef std::function)> TunnelHopVisitor; - enum TunnelState { eTunnelStatePending, @@ -70,6 +67,9 @@ namespace tunnel public: + /** function for visiting a hops stored in a tunnel */ + typedef std::function)> TunnelHopVisitor; + Tunnel (std::shared_ptr config); ~Tunnel ();