Package net.i2p.i2ptunnel.udp
Class I2PSinkAnywhere
java.lang.Object
net.i2p.i2ptunnel.udp.I2PSinkAnywhere
- All Implemented Interfaces:
Sink
public class I2PSinkAnywhere extends Object implements Sink
Producer
This sends to any destination specified in send()
- Author:
- zzz modded from I2PSink by welterde
-
Field Summary
Fields Modifier and Type Field Description protected I2PDatagramMaker
maker
protected boolean
raw
protected I2PSession
sess
-
Constructor Summary
Constructors Constructor Description I2PSinkAnywhere(I2PSession sess)
I2PSinkAnywhere(I2PSession sess, boolean raw)
-
Method Summary
Modifier and Type Method Description void
send(Destination to, byte[] data)
-
Field Details
-
Constructor Details
-
Method Details
-
send
- Specified by:
send
in interfaceSink
- Parameters:
to
- - where it's going- Throws:
RuntimeException
- if session is closed
-