Package org.klomp.snark.dht
Class MsgID
java.lang.Object
net.i2p.data.ByteArray
org.klomp.snark.dht.MsgID
- All Implemented Interfaces:
Serializable
,Comparable<ByteArray>
Used for both incoming and outgoing message IDs
- Since:
- 0.9.2
- Author:
- zzz
-
Constructor Summary
ConstructorDescriptionMsgID
(byte[] data) incoming - save the ID (arbitrary length)MsgID
(I2PAppContext ctx) outgoing - generate a random ID -
Method Summary
-
Constructor Details
-
MsgID
outgoing - generate a random ID -
MsgID
public MsgID(byte[] data) incoming - save the ID (arbitrary length)
-