Class ThrottledPumpedTunnelGateway


class ThrottledPumpedTunnelGateway extends PumpedTunnelGateway
Same as PTG, but check to see if a message should be dropped before queueing it. Used for IBGWs.
Since:
0.7.9
  • Constructor Details

  • Method Details

    • add

      public void add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel)
      Possibly drop a message due to bandwidth before adding it to the preprocessor queue. We do this here instead of in the InboundGatewayReceiver because it is much smarter to drop whole I2NP messages, where we know the message type and length, rather than tunnel messages containing I2NP fragments.
      Overrides:
      add in class PumpedTunnelGateway
      Parameters:
      msg - message to be sent through the tunnel
      toRouter - router to send to after the endpoint (or null for endpoint processing)
      toTunnel - tunnel to send to after the endpoint (or null for endpoint or router processing)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      0.9.8