Package net.i2p.router.tunnel
Class OutboundReceiver
- java.lang.Object
-
- net.i2p.router.tunnel.OutboundReceiver
-
- All Implemented Interfaces:
TunnelGateway.Receiver
class OutboundReceiver extends Object implements TunnelGateway.Receiver
We are the outbound gateway - we created this outbound tunnel. Receive the outbound message after it has been preprocessed and encrypted, then forward it on to the first hop in the tunnel. Not used for zero-hop OBGWs.
-
-
Constructor Summary
Constructors Constructor Description OutboundReceiver(RouterContext ctx, TunnelCreatorConfig cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hash
getSendTo()
The next hoplong
receiveEncrypted(byte[] encrypted)
Take the encrypted data and send it off to the next hop
-
-
-
Constructor Detail
-
OutboundReceiver
public OutboundReceiver(RouterContext ctx, TunnelCreatorConfig cfg)
-
-
Method Detail
-
receiveEncrypted
public long receiveEncrypted(byte[] encrypted)
Description copied from interface:TunnelGateway.Receiver
Take the encrypted data and send it off to the next hop- Specified by:
receiveEncrypted
in interfaceTunnelGateway.Receiver
- Returns:
- message ID it was sent in, or -1 if it had to be deferred
-
getSendTo
public Hash getSendTo()
The next hop- Specified by:
getSendTo
in interfaceTunnelGateway.Receiver
- Returns:
- non-null
- Since:
- 0.9.3
-
-