Package net.i2p.i2ptunnel.udp
Class I2PSinkAnywhere
java.lang.Object
net.i2p.i2ptunnel.udp.I2PSinkAnywhere
- All Implemented Interfaces:
Sink
Producer
This sends to any destination specified in send()
- Author:
- zzz modded from I2PSink by welterde
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final I2PDatagramMakerprotected final booleanprotected final I2PSession -
Constructor Summary
ConstructorsConstructorDescriptionI2PSinkAnywhere(I2PSession sess) I2PSinkAnywhere(I2PSession sess, boolean raw) -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(Destination to, byte[] data) voidsend(Destination to, int fromPort, int toPort, byte[] data)
-
Field Details
-
raw
protected final boolean raw -
sess
-
maker
-
-
Constructor Details
-
I2PSinkAnywhere
-
I2PSinkAnywhere
-
-
Method Details
-
send
- Parameters:
to- - where it's going- Throws:
RuntimeException- if session is closed
-
send
- Specified by:
sendin 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
-