It's not a secret anymore!*
The moose likes Sockets and Internet Protocols and the fly likes BitTorrent client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "BitTorrent client" Watch "BitTorrent client" New topic
Author

BitTorrent client

tim jones
Greenhorn

Joined: Feb 09, 2007
Posts: 26
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

Joined: Oct 29, 2001
Posts: 8836
    
    7

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?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
tim jones
Greenhorn

Joined: Feb 09, 2007
Posts: 26
Well then,what should I be using to implement BitTorrent...
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

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.
 
wood burning stoves
 
subject: BitTorrent client
 
Similar Threads
azureus project
Question: Useful Applications of Java
polling a socket
How does p2p network works (how client find other client in the network)
General Network Question about finding client's in network