Package net.i2p.i2ptunnel.udp
Class I2PSinkAnywhere
- java.lang.Object
-
- net.i2p.i2ptunnel.udp.I2PSinkAnywhere
-
-
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)
-
-
-
Field Detail
-
raw
protected final boolean raw
-
sess
protected final I2PSession sess
-
maker
protected final I2PDatagramMaker maker
-
-
Constructor Detail
-
I2PSinkAnywhere
public I2PSinkAnywhere(I2PSession sess)
-
I2PSinkAnywhere
public I2PSinkAnywhere(I2PSession sess, boolean raw)
-
-
Method Detail
-
send
public void send(Destination to, byte[] data)
- Specified by:
send
in interfaceSink
- Parameters:
to
- - where it's going- Throws:
RuntimeException
- if session is closed
-
-