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); }
public TunnelMessageTunnel(I2NPMessage message, InboundTunnel tunnel) : base(message, tunnel.Destination, DeliveryTypes.Tunnel) { Tunnel = tunnel.GatewayTunnelId; }
public TunnelMessageTunnel(I2NPMessage message, I2PIdentHash destination, I2PTunnelId tunnel) : base(message, destination, DeliveryTypes.Tunnel) { Tunnel = tunnel; }
public TunnelMessageRouter(I2NPMessage message, I2PIdentHash destination) : base(message, DeliveryTypes.Router) { Destination = destination; }
protected TunnelMessageRouter(I2NPMessage message, I2PIdentHash destination, DeliveryTypes dt) : base(message, dt) { Destination = destination; }
public TunnelMessageLocal(I2NPMessage message) : base(message, DeliveryTypes.Local) { }
protected TunnelMessage(I2NPMessage message, DeliveryTypes dt) { Message = message; Delivery = dt; }