class InboundMessageDistributor extends Object implements GarlicMessageReceiver.CloveReceiver
| Constructor and Description |
|---|
InboundMessageDistributor(RouterContext ctx,
Hash client)Create a new inbound message distributor. |
| Modifier and Type | Method and Description |
|---|---|
void | distribute(I2NPMessage msg,
Hash target)distribute. |
void | distribute(I2NPMessage msg,
Hash target,
TunnelId tunnel)distribute. |
void | handleClove(DeliveryInstructions instructions,
I2NPMessage data)Handle a clove removed from the garlic message |
public InboundMessageDistributor(RouterContext ctx, Hash client)
client - null for router tunnelpublic void distribute(I2NPMessage msg, Hash target)
public void distribute(I2NPMessage msg, Hash target, TunnelId tunnel)
public void handleClove(DeliveryInstructions instructions, I2NPMessage data)
handleClove in interface GarlicMessageReceiver.CloveReceiverinstructions - Delivery instructions associated with the clove.data - The I2NPMessage data carried by the clove.