Class NID

All Implemented Interfaces:
DataStructure

public class NID
extends SHA1Hash
A 20-byte peer ID, used as a Map key in lots of places. Must be public for constructor in KBucketSet.generateRandomKey()
Since:
0.9.2
Author:
zzz
  • Constructor Details

    • NID

      public NID()
    • NID

      public NID​(byte[] data)
  • Method Details

    • lastSeen

      public long lastSeen()
    • setLastSeen

      public void setLastSeen()
    • timeout

      public boolean timeout()
      Returns:
      if more than max timeouts