public class ThrottledPumpedTunnelGateway
- extends PumpedTunnelGateway
Same as PTG, but check to see if a message should be dropped before queueing it.
Used for IBGWs.
Possibly drop a message due to bandwidth before adding it to the preprocessor queue.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ThrottledPumpedTunnelGateway(RouterContext context,
public void add(I2NPMessage msg,
- 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.
add in class
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)