Package net.i2p.router.tunnel
Class InboundGatewayReceiver
java.lang.Object
net.i2p.router.tunnel.InboundGatewayReceiver
- All Implemented Interfaces:
TunnelGateway.Receiver
class InboundGatewayReceiver extends Object implements TunnelGateway.Receiver
Handle messages at the IBGW.
Not used for zero-hop IBGWs.
-
Constructor Summary
Constructors Constructor Description InboundGatewayReceiver(RouterContext ctx, HopConfig cfg)
-
Method Summary
Modifier and Type Method Description Hash
getSendTo()
The next hoplong
receiveEncrypted(byte[] encrypted)
Take the encrypted data and send it off to the next hoplong
receiveEncrypted(byte[] encrypted, boolean alreadySearched)
-
Constructor Details
-
Method Details
-
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
-
receiveEncrypted
public long receiveEncrypted(byte[] encrypted, boolean alreadySearched) -
getSendTo
The next hop- Specified by:
getSendTo
in interfaceTunnelGateway.Receiver
- Returns:
- non-null
- Since:
- 0.9.3
-