Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

BitTorrent client

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well then,what should I be using to implement BitTorrent...
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic