protected class GatewayITBase.TestReceiver extends Object implements TunnelGateway.Receiver, FragmentHandler.DefragmentedReceiver
| Constructor and Description |
|---|
TestReceiver(TunnelCreatorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
List<I2NPMessage> |
clearReceived() |
net.i2p.data.Hash |
getSendTo()
The next hop
|
protected void |
handleAtEndpoint(byte[] encrypted) |
void |
receiveComplete(I2NPMessage msg,
net.i2p.data.Hash toRouter,
net.i2p.data.TunnelId toTunnel)
Receive a fully formed I2NPMessage out of the tunnel
|
long |
receiveEncrypted(byte[] encrypted)
Take the encrypted data and send it off to the next hop
|
public TestReceiver(TunnelCreatorConfig config)
public long receiveEncrypted(byte[] encrypted)
TunnelGateway.ReceiverreceiveEncrypted in interface TunnelGateway.Receiverprotected void handleAtEndpoint(byte[] encrypted)
public void receiveComplete(I2NPMessage msg, net.i2p.data.Hash toRouter, net.i2p.data.TunnelId toTunnel)
FragmentHandler.DefragmentedReceiverreceiveComplete in interface FragmentHandler.DefragmentedReceivermsg - message receivedtoRouter - where we are told to send the message (null means locally)toTunnel - where we are told to send the message (null means locally or to the specified router)public List<I2NPMessage> clearReceived()
public net.i2p.data.Hash getSendTo()
TunnelGateway.ReceivergetSendTo in interface TunnelGateway.Receiver