java.lang.Object
net.i2p.router.tunnel.InboundSender
All Implemented Interfaces:
TunnelGateway.Sender

class InboundSenderextends Object implements TunnelGateway.Sender
Receive the preprocessed data for an inbound gateway, encrypt it, and forward it on to the first hop.
  • Field Details

  • Constructor Details

    • InboundSender

      public InboundSender(I2PAppContext ctx, HopConfig config)
      Binds the given context and hop config for the inbound gateway.
      Parameters:
      ctx - application context, passed to the gateway processor
      config - hop configuration for the inbound tunnel
  • Method Details

    • sendPreprocessed

      public long sendPreprocessed(byte[] preprocessed, TunnelGateway.Receiver receiver)
      Encrypt the preprocessed data and forward it to the receiver for delivery.
      Specified by:
      sendPreprocessed in interface TunnelGateway.Sender
      Parameters:
      preprocessed - the preprocessed data
      receiver - the gateway end that will accept the encrypted data
      Returns:
      message ID it was sent in, or -1 if it was deferred