views:

2172

answers:

5

Are there any decent BitTorrent libraries for Java? I need to program a simple torrent client, but it would be great if I didn't have to write everything from scratch.

+1  A: 

Quick Google Search: Snark

Justin Niessner
Yeah. I found Snark all by myself too, but I had no idea if it was any good.
maisteri
+8  A: 

Snark by Three Rings is a very lightweight bitorrent library that will give you basic torrent features.

jjnguy
"Snark is released under the GPL" (!)
Tim
The link to Snark is broken.
uckelman
@uckel, fixed the link. Thanks. The project must have moved.
jjnguy
A: 

Azureus is written in Java - is most likely not "simple" but quite likely "decent" :)

Thorbjørn Ravn Andersen
But is it a library - does it offer APIs that you can easily use in your own programs?
Jonik
+1  A: 

Yes, Azureus gives you a plugin API. Using this API you can plug your code into Azureus. Start it inside your program, and listen/respond to its events.

Anonymous
A: 

beware Snark not support modern bittorrent like "compact" peer only. code need to customized.

Hlex