Normally I would be happy to help you, but after several years of trying to help here, I've decided not to contribute anymore because of the piss-poor way in which this site is being administered.
Others are still helping, but more may leave if things don't improve. May I recommend devshed or javaranch?
http://www.devshed.com/
http://www.javaranch.com/
If you would like to complain to the admins of this forum, either click the "Report Abuse" link or the "Feedback" link.
-- foofoo (shamelessly stolen the text from jverd).
The practice of peer-to-peer computing: P2P meets SSL:
http://www-128.ibm.com/developerworks/java/library/j-p2pssl
Introduction to the Peer-to-Peer Sockets Project:
http://www.onjava.com/pub/a/onjava/2003/12/03/p2psockets.html
JXTA Tutorials:
http://www.jxta.org/project/www/Tutorials.html
> Well, I think we got a little bit off the road. I
> wanted rather to know how the algorithm works, not
> some implementations. I think JXTA is rather
> complicated for a small project as mine's is.
I don't think there is a simple set of instructions which discribe the full working of peer-to-peer (distributed computing). I also wouldn't call P2P an algortihm, but rather a (communication) protocol.
Anyway, you're most welcome for the provided links and all the luck to you!