double timeout = Msg.getClock() + Common.GET_PEERS_TIMEOUT;
//Build the task to send to the tracker
TrackerTask taskSend = new TrackerTask(hostname, mailboxTracker, id);
double timeout = Msg.getClock() + Common.GET_PEERS_TIMEOUT;
//Build the task to send to the tracker
TrackerTask taskSend = new TrackerTask(hostname, mailboxTracker, id);
try {
Msg.debug("Sending a peer request to the tracker.");
taskSend.send(Common.TRACKER_MAILBOX,Common.GET_PEERS_TIMEOUT);
try {
Msg.debug("Sending a peer request to the tracker.");
taskSend.send(Common.TRACKER_MAILBOX,Common.GET_PEERS_TIMEOUT);