Closed zhangoose closed 10 years ago
When you send a HTTP GET Request to the Tracker, it will return you a Map<byte[], String>. With that, you want to compare to the Map<byte[], Peer> peerHistory, inside of Client class. Just check to see if the return map keys are in the peer history. If they are not in the history, just created the Peer object and add that in to the peerHistory.
Sending a HTTP GET Request to the Tracker based on interval