class OutboundReceiver extends Object implements TunnelGateway.Receiver
| Constructor and Description |
|---|
OutboundReceiver(RouterContext ctx,
TunnelCreatorConfig cfg)Binds the context and tunnel config, caching the first hop router info. |
| Modifier and Type | Method and Description |
|---|---|
Hash | getSendTo()The next hop |
long | receiveEncrypted(byte[] encrypted)Forward the encrypted data to the first hop in the tunnel. |
public OutboundReceiver(RouterContext ctx, TunnelCreatorConfig cfg)
public Hash getSendTo()
getSendTo in interface TunnelGateway.Receiverpublic long receiveEncrypted(byte[] encrypted)
receiveEncrypted in interface TunnelGateway.Receiverencrypted - the encrypted data