Iam building a BitTorrent Client...i run each client at different machines and each client will need to interact with the tracker, again on a different machine, from time to time..How can this be accomplished???Both the client and tracker are java programs. Iam new to socket programming...I've already gone through the sun java tutorials on sockets. Is it possible for client to call methods of tracker while connecting with the other system through sockets.
Originally posted by udhaya t: Is it possible for client to call methods of tracker while connecting with the other system through sockets.
Certainly. In the Java world we call this Remote Method Invocation. However, if you use RMI to construct your swarm, you really aren't using BitTorrent. Have you read and do you understand the BitTorrent specification?
Plain sockets. I may have been confused. When you said "Is it possible for client to call methods of tracker while connecting with the other system through sockets" were you thinking object-level method invocation (that would be RMI) or were you thinking simultaneous TCP connections? There's nothing preventing one from connecting simultaneously to the tracker and multiple clients.