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

class OutboundSenderextends 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.
  • Field Details

  • Constructor Details

    • OutboundSender

      public OutboundSender(I2PAppContext ctx, TunnelCreatorConfig config)
      Binds the given context and config, creating the outbound gateway processor.
      Parameters:
      ctx - the application context, handed to the outbound gateway processor
      config - the tunnel creator config
  • Method Details

    • sendPreprocessed

      public long sendPreprocessed(byte[] preprocessed, TunnelGateway.Receiver receiver)
      Description copied from interface: TunnelGateway.Sender
      Encrypt and forward preprocessed data to the receiver.
      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