net.i2p.i2ptunnel.udp
Class I2PSink
java.lang.Object
net.i2p.i2ptunnel.udp.I2PSink
- All Implemented Interfaces:
- Sink
public class I2PSink
- extends Object
- implements Sink
Producer
This sends to a fixed destination specified in the constructor
- Author:
- welterde
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
raw
protected final boolean raw
sess
protected final I2PSession sess
dest
protected final Destination dest
maker
protected final I2PDatagramMaker maker
I2PSink
public I2PSink(I2PSession sess,
Destination dest)
I2PSink
public I2PSink(I2PSession sess,
Destination dest,
boolean raw)
send
public void send(Destination src,
byte[] data)
- Specified by:
send
in interface Sink
- Parameters:
src
- ignored
- Throws:
RuntimeException
- if session is closed