p-tai / RUBTProject

0 stars 0 forks source link

send dat http get request #6

Closed zhangoose closed 10 years ago

zhangoose commented 10 years ago

Sending a HTTP GET Request to the Tracker based on interval

anthonywong555 commented 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.