net.i2p.router.tunnel

## Interface TunnelGateway.Receiver

- All Known Implementing Classes:
    InboundGatewayReceiver, OutboundReceiver
  Enclosing class:
    TunnelGateway

      public static interface TunnelGateway.Receiver

  Interface for receiving encrypted tunnel data. Handles delivery of encrypted messages to the next hop in the tunnel.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Hash` | `getSendTo()` The next hop
    `long` | `receiveEncrypted(byte[] encrypted)` Take the encrypted data and send it off to the next hop

- - ### Method Detail

    - #### getSendTo

          Hash getSendTo()

      The next hop
      Returns:
        non-null

    - #### receiveEncrypted

          long receiveEncrypted(byte[] encrypted)

      Take the encrypted data and send it off to the next hop
      Returns:
        message ID it was sent in, or -1 if it had to be deferred