Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BitTorrent client

 
tim jones
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joe Ess
Bartender
Pie
Posts: 9265
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
tim jones
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well then,what should I be using to implement BitTorrent...
 
Joe Ess
Bartender
Pie
Posts: 9265
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic