Package net.i2p.router.tunnel
Class TunnelGatewayZeroHop
java.lang.Object
net.i2p.router.tunnel.TunnelGateway
net.i2p.router.tunnel.TunnelGatewayZeroHop
Serve as the gatekeeper for a tunnel with no hops, either inbound or outbound.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.i2p.router.tunnel.TunnelGateway
TunnelGateway.DelayedFlush, TunnelGateway.QueuePreprocessor, TunnelGateway.Receiver, TunnelGateway.Sender
-
Field Summary
Fields inherited from class net.i2p.router.tunnel.TunnelGateway
_context, _delayedFlush, _lastFlush, _log, _messagesSent, _preprocessor, _queue, _receiver, _sender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(I2NPMessage msg, Hash toRouter, TunnelId toTunnel) Add a message to be sent down the tunnel (immediately forwarding it to theInboundMessageDistributor
orOutboundMessageDistributor
, as necessary).void
add
(TunnelGatewayMessage msg) Add a message to be sent down the tunnel, where we are the inbound gateway.Methods inherited from class net.i2p.router.tunnel.TunnelGateway
getMessagesSent
-
Constructor Details
-
TunnelGatewayZeroHop
-
-
Method Details
-
add
Add a message to be sent down the tunnel, where we are the inbound gateway. This requires converting the message included in the TGM from an UnknownI2NPMessage to the correct message class. See TunnelGatewayMessage for details.- Overrides:
add
in classTunnelGateway
- Parameters:
msg
- message received to be sent through the tunnel
-
add
Add a message to be sent down the tunnel (immediately forwarding it to theInboundMessageDistributor
orOutboundMessageDistributor
, as necessary).- Overrides:
add
in classTunnelGateway
- Parameters:
msg
- message to be sent through the tunneltoRouter
- 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)
-