class InboundGatewayReceiver extends Object implements TunnelGateway.Receiver
| Constructor and Description |
|---|
InboundGatewayReceiver(RouterContext ctx,
HopConfig cfg)Binds the router context and hop configuration. |
| Modifier and Type | Method and Description |
|---|---|
Hash | getSendTo()The next hop |
long | receiveEncrypted(byte[] encrypted)Queue the encrypted data for delivery to the next hop. |
long | receiveEncrypted(byte[] encrypted,
boolean alreadySearched)Queue the encrypted data for delivery, with the netDb lookup already done. |
public InboundGatewayReceiver(RouterContext ctx, HopConfig cfg)
ctx - the router contextcfg - the hop configurationpublic Hash getSendTo()
getSendTo in interface TunnelGateway.Receiverpublic long receiveEncrypted(byte[] encrypted)
receiveEncrypted in interface TunnelGateway.Receiverencrypted - the encrypted datapublic long receiveEncrypted(byte[] encrypted,
boolean alreadySearched)