|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.TunnelGateway
net.i2p.router.tunnel.TunnelGatewayZeroHop
public class TunnelGatewayZeroHop
Serve as the gatekeeper for a tunnel with no hops.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.i2p.router.tunnel.TunnelGateway |
---|
TunnelGateway.Pending, TunnelGateway.PendingImpl, TunnelGateway.QueuePreprocessor, TunnelGateway.Receiver, TunnelGateway.Sender |
Field Summary |
---|
Fields inherited from class net.i2p.router.tunnel.TunnelGateway |
---|
_delayedFlush, _flushFrequency, _lastFlush, _messagesSent, _preprocessor, _queue, _receiver, _sender |
Constructor Summary | |
---|---|
TunnelGatewayZeroHop(RouterContext context,
TunnelCreatorConfig config)
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.i2p.router.tunnel.TunnelGateway |
---|
getMessagesSent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TunnelGatewayZeroHop(RouterContext context, TunnelCreatorConfig config)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |