net.i2p.client.datagram
Class I2PDatagramMaker

java.lang.Object
  extended by net.i2p.client.datagram.I2PDatagramMaker

public final class I2PDatagramMaker
extends java.lang.Object

Class for creating I2P repliable datagrams. Note that objects of this class are NOT THREAD SAFE!

Author:
human

Constructor Summary
I2PDatagramMaker(I2PSession session)
          Construct a new I2PDatagramMaker that will be able to create I2P repliable datagrams going to be sent through the specified I2PSession.
 
Method Summary
 byte[] makeI2PDatagram(byte[] payload)
          Make a repliable I2P datagram containing the specified payload.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I2PDatagramMaker

public I2PDatagramMaker(I2PSession session)
Construct a new I2PDatagramMaker that will be able to create I2P repliable datagrams going to be sent through the specified I2PSession.

Parameters:
session - I2PSession used to send I2PDatagrams through
Method Detail

makeI2PDatagram

public byte[] makeI2PDatagram(byte[] payload)
Make a repliable I2P datagram containing the specified payload.

Parameters:
payload - Bytes to be contained in the I2P datagram.