code: public void addPeer(TrackedPeer peer) {
      this.peers.put(new PeerUID(peer.getAddress(), this.getHexInfoHash()), peer);
    }
docs: Add a peer exchanging on this torrent.
  
  @param peer The new Peer involved with this torrent.