org.klomp.snark.dht
Class Peer

java.lang.Object
  extended by net.i2p.data.DataStructureImpl
      extended by net.i2p.data.SimpleDataStructure
          extended by net.i2p.data.Hash
              extended by org.klomp.snark.dht.Peer
All Implemented Interfaces:
DataStructure

 class Peer
extends Hash

A single peer for a single torrent. This is what the DHT tracker remembers.

Since:
0.9.2
Author:
zzz

Field Summary
 
Fields inherited from class net.i2p.data.Hash
FAKE_HASH, HASH_LENGTH
 
Fields inherited from class net.i2p.data.SimpleDataStructure
_data, _length
 
Constructor Summary
Peer(byte[] data)
           
 
Method Summary
 long lastSeen()
           
 void setLastSeen(long now)
           
 
Methods inherited from class net.i2p.data.Hash
create, create, create, hashCode, length, readBytes, setData, toBase64
 
Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, toByteArray, toString, writeBytes
 
Methods inherited from class net.i2p.data.DataStructureImpl
read
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Peer

public Peer(byte[] data)
Method Detail

lastSeen

public long lastSeen()

setLastSeen

public void setLastSeen(long now)