Modifier and Type | Field and Description |
---|---|
protected I2PDatagramMaker |
maker |
protected boolean |
raw |
protected I2PSession |
sess |
Constructor and Description |
---|
I2PSinkAnywhere(I2PSession sess) |
I2PSinkAnywhere(I2PSession sess,
boolean raw) |
Modifier and Type | Method and Description |
---|---|
void |
send(Destination to,
byte[] data) |
void |
send(Destination to,
int fromPort,
int toPort,
byte[] data) |
protected final boolean raw
protected final I2PSession sess
protected final I2PDatagramMaker maker
public I2PSinkAnywhere(I2PSession sess)
public I2PSinkAnywhere(I2PSession sess, boolean raw)
public void send(Destination to, byte[] data)
to
- - where it's goingRuntimeException
- if session is closedpublic void send(Destination to, int fromPort, int toPort, byte[] data)
send
in interface Sink
to
- - where it's goingfromPort
- I2CP port 0 - 65535toPort
- I2CP port 0 - 65535RuntimeException
- if session is closed