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
Modifier and TypeFieldDescriptionprotected final I2PDatagramMaker
protected final boolean
protected final I2PSession
-
Constructor Summary
ConstructorDescriptionI2PSinkAnywhere
(I2PSession sess) I2PSinkAnywhere
(I2PSession sess, boolean raw) -
Method Summary
Modifier and TypeMethodDescriptionvoid
send
(Destination to, byte[] data) void
send
(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:
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
-