## Uses of Class
org.klomp.snark.PeerID

- Packages that use PeerID
  Package | Description
  --- | ---
  org.klomp.snark | I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced to add a web UI, DHT support, and other features.

- - ### Uses of PeerID in org.klomp.snark

    Methods in org.klomp.snark that return PeerID
    Modifier and Type | Method and Description
    --- | ---
    `PeerID` | Peer.`getPeerID()` Returns the id of the peer.

    Methods in org.klomp.snark that return types with arguments of type PeerID
    Modifier and Type | Method and Description
    --- | ---
    `(package private) Set<PeerID>` | PeerCoordinator.`getPEXPeers()` Called by TrackerClient

    Methods in org.klomp.snark with parameters of type PeerID
    Modifier and Type | Method and Description
    --- | ---
    `int` | PeerID.`compareTo(PeerID pid)` Deprecated. unused? and will NPE now that address can be null?
    `(package private) I2PSocket` | I2PSnarkUtil.`connect(PeerID peer)` Connect to the given destination
    `boolean` | PeerID.`sameID(PeerID pid)` Returns true if and only if this peerID and the given peerID have the same destination hash

    Method parameters in org.klomp.snark with type arguments of type PeerID
    Modifier and Type | Method and Description
    --- | ---
    `void` | PeerListener.`gotPeers(Peer peer, List<PeerID> pIDList)` Called when peers are received via PEX
    `void` | PeerCoordinator.`gotPeers(Peer peer, List<PeerID> peers)` Get peers from PEX - PeerListener callback

    Constructors in org.klomp.snark with parameters of type PeerID
    Constructor and Description
    `Peer(PeerID peerID, byte[] my_id, byte[] infohash, MetaInfo metainfo)` Outgoing connection.
    `WebPeer(PeerCoordinator coord, URI uri, PeerID peerID, MetaInfo metainfo)` Outgoing connection.