transit tunnel

This commit is contained in:
orignal 2013-11-10 18:19:49 -05:00
parent 18ec2e9ce8
commit 84301daeb8
7 changed files with 561 additions and 0 deletions

26
TunnelBase.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef TUNNEL_BASE_H__
#define TUNNEL_BASE_H__
#include <inttypes.h>
namespace i2p
{
namespace tunnel
{
enum TunnelDeliveryType
{
eDeliveryTypeLocal = 0,
eDeliveryTypeTunnel = 1,
eDeliveryTypeRouter = 2
};
struct TunnelMessageBlock
{
TunnelDeliveryType deliveryType;
uint32_t tunnelID;
uint8_t hash[32];
I2NPMessage * data;
};
}
}
#endif