mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
split long message to multiple fragments
This commit is contained in:
parent
0d33010335
commit
89aa99c198
3 changed files with 69 additions and 43 deletions
10
TunnelBase.h
10
TunnelBase.h
|
@ -2,6 +2,7 @@
|
|||
#define TUNNEL_BASE_H__
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "I2NPProtocol.h"
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
|
@ -20,6 +21,15 @@ namespace tunnel
|
|||
uint8_t hash[32];
|
||||
I2NPMessage * data;
|
||||
};
|
||||
|
||||
class TunnelBase
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void EncryptTunnelMsg (I2NPMessage * tunnelMsg) = 0;
|
||||
virtual uint32_t GetNextTunnelID () const = 0;
|
||||
virtual const uint8_t * GetNextIdentHash () const = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue