Package net.i2p.i2ptunnel.udp
Class I2PSinkAnywhere
java.lang.Object
net.i2p.i2ptunnel.udp.I2PSinkAnywhere
- All Implemented Interfaces:
Sink
public class I2PSinkAnywhere extends Object implements Sink
Producer
This sends to any destination specified in send()
- Author:
- zzz modded from I2PSink by welterde
-
Field Summary
Fields Modifier and Type Field Description protected I2PDatagramMakermakerprotected booleanrawprotected I2PSessionsess -
Constructor Summary
Constructors Constructor Description I2PSinkAnywhere(I2PSession sess)I2PSinkAnywhere(I2PSession sess, boolean raw) -
Method Summary
Modifier and Type Method Description voidsend(Destination to, byte[] data)
-
Field Details
-
Constructor Details
-
Method Details
-
send
- Specified by:
sendin interfaceSink- Parameters:
to- - where it's going- Throws:
RuntimeException- if session is closed
-