示例#1
0
        public TunnelGatewayMessage(I2NPMessage message, I2PTunnelId outtunnel)
        {
            var msg = message.CreateHeader16.HeaderAndPayload;

            AllocateBuffer(6 + msg.Length);

            TunnelId             = outtunnel;
            GatewayMessageLength = (ushort)msg.Length;
            // TODO: Remove mem copy
            Payload.Poke(msg, 6);
        }
示例#2
0
 public TunnelMessageTunnel(I2NPMessage message, InboundTunnel tunnel)
     : base(message, tunnel.Destination, DeliveryTypes.Tunnel)
 {
     Tunnel = tunnel.GatewayTunnelId;
 }
示例#3
0
 public TunnelMessageTunnel(I2NPMessage message, I2PIdentHash destination, I2PTunnelId tunnel)
     : base(message, destination, DeliveryTypes.Tunnel)
 {
     Tunnel = tunnel;
 }
示例#4
0
 public TunnelMessageRouter(I2NPMessage message, I2PIdentHash destination)
     : base(message, DeliveryTypes.Router)
 {
     Destination = destination;
 }
示例#5
0
 protected TunnelMessageRouter(I2NPMessage message, I2PIdentHash destination, DeliveryTypes dt)
     : base(message, dt)
 {
     Destination = destination;
 }
示例#6
0
 public TunnelMessageLocal(I2NPMessage message) : base(message, DeliveryTypes.Local)
 {
 }
示例#7
0
 protected TunnelMessage(I2NPMessage message, DeliveryTypes dt)
 {
     Message  = message;
     Delivery = dt;
 }