class TunnelGatewayZeroHop extends TunnelGateway
TunnelGateway.DelayedFlush, TunnelGateway.QueuePreprocessor, TunnelGateway.Receiver, TunnelGateway.Sender_context, _delayedFlush, _lastFlush, _log, _messagesSent, _preprocessor, _queue, _receiver, _sender| Constructor and Description |
|---|
TunnelGatewayZeroHop(RouterContext context,
TunnelCreatorConfig config)Create a zero-hop gateway for the specified tunnel. |
| Modifier and Type | Method and Description |
|---|---|
boolean | add(I2NPMessage msg,
Hash toRouter,
TunnelId toTunnel)Add a message to be sent down the tunnel (immediately forwarding it to the
InboundMessageDistributor or OutboundMessageDistributor, as
necessary). |
boolean | add(TunnelGatewayMessage msg)Add a message to be sent down the tunnel, where we are the inbound gateway. |
getMessagesSentpublic TunnelGatewayZeroHop(RouterContext context, TunnelCreatorConfig config)
public boolean add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel)
InboundMessageDistributor or OutboundMessageDistributor, as
necessary).add in class TunnelGatewaymsg - 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)public boolean add(TunnelGatewayMessage msg)
add in class TunnelGatewaymsg - message received to be sent through the tunnel