Package net.i2p.router.tunnel
Class InboundSender
- java.lang.Object
- 
- net.i2p.router.tunnel.InboundSender
 
- 
- All Implemented Interfaces:
- TunnelGateway.Sender
 
 class InboundSender extends Object implements TunnelGateway.Sender Receive the preprocessed data for an inbound gateway, encrypt it, and forward it on to the first hop.
- 
- 
Constructor SummaryConstructors Constructor Description InboundSender(I2PAppContext ctx, HopConfig config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longsendPreprocessed(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- 
InboundSenderpublic InboundSender(I2PAppContext ctx, HopConfig config) 
 
- 
 - 
Method Detail- 
sendPreprocessedpublic long sendPreprocessed(byte[] preprocessed, TunnelGateway.Receiver receiver)Description copied from interface:TunnelGateway.SenderTake the preprocessed data containing zero or more fragments, encrypt it, and pass it on to the receiver- Specified by:
- sendPreprocessedin interface- TunnelGateway.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
 
 
- 
 
-