Package org.klomp.snark.dht
Class Peer
java.lang.Object
net.i2p.data.SimpleDataStructure
net.i2p.data.Hash
org.klomp.snark.dht.Peer
- All Implemented Interfaces:
 DataStructure
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_LENGTHFields inherited from class net.i2p.data.SimpleDataStructure
_data - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanisSeed()longlastSeen()voidsetLastSeen(long now) voidsetSeed(boolean isSeed) Methods inherited from class net.i2p.data.Hash
clearCache, create, create, create, hashCode, length, readBytes, setData, toBase32, toBase64Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, read, toByteArray, toString, writeBytes 
- 
Constructor Details
- 
Peer
public Peer(byte[] data)  
 - 
 - 
Method Details
- 
lastSeen
public long lastSeen() - 
setLastSeen
public void setLastSeen(long now)  - 
isSeed
public boolean isSeed()- Since:
 - 0.9.14
 
 - 
setSeed
public void setSeed(boolean isSeed) - Since:
 - 0.9.14
 
 
 -