bitlet
bitlet copied to clipboard
A small Java bittorrent library, powering BitLet.org
java.io.EOFException at java.io.DataInputStream.readInt(Unknown Source) at org.bitlet.wetorrent.peer.task.MessageReceiver.execute(MessageReceiver.java:55) at org.bitlet.wetorrent.util.thread.InterruptableTasksThread.run(InterruptableTasksThread.java:50) java.io.EOFException at java.io.DataInputStream.readInt(Unknown Source) at org.bitlet.wetorrent.peer.task.MessageReceiver.execute(MessageReceiver.java:55) at org.bitlet.wetorrent.util.thread.InterruptableTasksThread.run(InterruptableTasksThread.java:50)
There is a NullPointerException thrown in file 'Metafile.java' at line 86 byte[] announceByteString = ((ByteBuffer) rootDictionary.get(toByteBuffer("announce"))).array();
I cant download multiple torrents. ``` java Metafile metafile = new Metafile(new BufferedInputStream(new FileInputStream(torrentPath))); // Create the torrent disk, this is the destination where the torrent file/s will be saved...
I'm so confused... what software do I have to use exactly?
Hi,I have a demo. code : Metafile metafile = new Metafile(new BufferedInputStream(new FileInputStream("c:/saber.torrent"))); TorrentDisk tdisk = new PlainFileSystemTorrentDisk(metafile, new File("c:/")); tdisk.init(); IncomingPeerListener peerListener = new IncomingPeerListener(59999); peerListener.start(); Torrent torrent =...
I get it your probably going to clown on me for putting this, but i have been looking every where and i have tried. I just cant seem to get...
WebSeeds
How should WebSeeds work? There doesn't seem to be code pulling the url-list out of the metadata. I could write this but then there doesn't seem to be a way...
Metafile metafile = new Metafile(new BufferedInputStream(new FileInputStream(filename))); // filename1 is a new torrent file metafile.print(new BufferedOutputStream(new FileOutputStream(filename1, true))); //but filename1 can't be used //first,edit Announce/Comment/FileName or something else in a...
Use lookahead variable to avoid using mark()/reset() on the java.io.InputStream
Hi i tried tu use the library but it seems that it only supports http trackers. When torrent has udp tracker then: in method org.bitlet.wetorrent.Tracker.trackerRequest(Torrent, String) line 68: URL trackerUrl...