Package net.i2p.i2ptunnel.udp
Class I2PSink
- java.lang.Object
-
- net.i2p.i2ptunnel.udp.I2PSink
-
-
Field Summary
Fields Modifier and Type Field Description protected Destination
dest
protected I2PDatagramMaker
maker
protected boolean
raw
protected I2PSession
sess
-
Constructor Summary
Constructors Constructor Description I2PSink(I2PSession sess, Destination dest)
I2PSink(I2PSession sess, Destination dest, boolean raw)
-
-
-
Field Detail
-
raw
protected final boolean raw
-
sess
protected final I2PSession sess
-
dest
protected final Destination dest
-
maker
protected final I2PDatagramMaker maker
-
-
Constructor Detail
-
I2PSink
public I2PSink(I2PSession sess, Destination dest)
-
I2PSink
public I2PSink(I2PSession sess, Destination dest, boolean raw)
-
-
Method Detail
-
send
public void send(Destination src, byte[] data)
- Specified by:
send
in interfaceSink
- Parameters:
src
- ignored- Throws:
RuntimeException
- if session is closed
-
-