org.klomp.snark.dht
Class MsgID

java.lang.Object
  extended by net.i2p.data.ByteArray
      extended by org.klomp.snark.dht.MsgID
All Implemented Interfaces:
Serializable, Comparable

 class MsgID
extends ByteArray

Used for both incoming and outgoing message IDs

Since:
0.9.2
Author:
zzz

Constructor Summary
MsgID(byte[] data)
          incoming - save the ID (arbitrary length)
MsgID(I2PAppContext ctx)
          outgoing - generate a random ID
 
Method Summary
 
Methods inherited from class net.i2p.data.ByteArray
compareTo, equals, getData, getOffset, getValid, hashCode, setData, setOffset, setValid, toBase64, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsgID

public MsgID(I2PAppContext ctx)
outgoing - generate a random ID


MsgID

public MsgID(byte[] data)
incoming - save the ID (arbitrary length)