public final class I2PDatagramMaker extends Object
Constructor and Description |
---|
I2PDatagramMaker()
Construct a new I2PDatagramMaker that is null.
|
I2PDatagramMaker(I2PSession session)
Construct a new I2PDatagramMaker that will be able to create I2P
repliable datagrams going to be sent through the specified I2PSession.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
makeI2PDatagram(byte[] payload)
Make a repliable I2P datagram containing the specified payload.
|
void |
setI2PDatagramMaker(I2PSession session) |
public I2PDatagramMaker(I2PSession session)
session
- I2PSession used to send I2PDatagrams throughpublic I2PDatagramMaker()
public void setI2PDatagramMaker(I2PSession session)
public byte[] makeI2PDatagram(byte[] payload)
payload
- non-null Bytes to be contained in the I2P datagram.IllegalArgumentException
- if payload is too bigIllegalStateException
- if Destination signature type unsupported