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) |
Modifier and Type | Method and Description |
---|---|
void |
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). |
void |
add(TunnelGatewayMessage msg)
Add a message to be sent down the tunnel, where we are the inbound gateway.
|
getMessagesSent
public TunnelGatewayZeroHop(RouterContext context, TunnelCreatorConfig config)
public void add(TunnelGatewayMessage msg)
add
in class TunnelGateway
msg
- message received to be sent through the tunnelpublic void add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel)
InboundMessageDistributor
or OutboundMessageDistributor
, as
necessary).add
in class TunnelGateway
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)