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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(Destination to, byte[] data)
void
send(Destination to, int fromPort, int toPort, byte[] data)
-
-
-
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)
- Parameters:
to
- - where it's going- Throws:
RuntimeException
- if session is closed
-
send
public void send(Destination to, int fromPort, int toPort, byte[] data)
- Specified by:
send
in interfaceSink
- Parameters:
to
- - where it's goingfromPort
- I2CP port 0 - 65535toPort
- I2CP port 0 - 65535- Throws:
RuntimeException
- if session is closed- Since:
- 0.9.53
-
-