Package net.i2p.router.tunnel
Class OutboundSender
- java.lang.Object
-
- net.i2p.router.tunnel.OutboundSender
-
- All Implemented Interfaces:
TunnelGateway.Sender
class OutboundSender extends Object implements TunnelGateway.Sender
Receive the preprocessed data for an outbound gateway, encrypt all of the layers, and forward it on to the first hop.
-
-
Constructor Summary
Constructors Constructor Description OutboundSender(I2PAppContext ctx, TunnelCreatorConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
sendPreprocessed(byte[] preprocessed, TunnelGateway.Receiver receiver)
Take the preprocessed data containing zero or more fragments, encrypt it, and pass it on to the receiver
-
-
-
Constructor Detail
-
OutboundSender
public OutboundSender(I2PAppContext ctx, TunnelCreatorConfig config)
-
-
Method Detail
-
sendPreprocessed
public long sendPreprocessed(byte[] preprocessed, TunnelGateway.Receiver receiver)
Description copied from interface:TunnelGateway.Sender
Take the preprocessed data containing zero or more fragments, encrypt it, and pass it on to the receiver- Specified by:
sendPreprocessed
in interfaceTunnelGateway.Sender
- Parameters:
preprocessed
- IV + (rand padding) + 0x0 + Hash[0:3] + {instruction+fragment}*- Returns:
- message ID it was sent in, or -1 if it was deferred
-
-