Giter Site home page Giter Site logo

bitlet's People

Contributors

abahgat avatar dcastagna avatar toilal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitlet's Issues

An error occurred downloading.

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 = new Torrent(metafile, tdisk, peerListener);
torrent.startDownload();
while (!torrent.isCompleted()) {
try {
Thread.sleep(1000);
//System.out.println("downloading....");
} catch(InterruptedException ie) {
break;
}
torrent.tick();
}

error message:
java.net.SocketException: Socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at java.io.DataInputStream.readFully(DataInputStream.java:169)
at org.bitlet.wetorrent.peer.task.MessageReceiver.execute(MessageReceiver.java:106)
at org.bitlet.wetorrent.util.thread.InterruptableTasksThread.run(InterruptableTasksThread.java:50)

Instructions

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 BITLET working i dont even know how to start it or what not. I have tried Ive tried this
image

BUT I CANT GET IT TO WORK .... yes i know that "$1 " is the torrent file but i wouldnt know how to start or use it

the reason i want t use it is because my ISP hase been throttling my fucken internet connection for my Peer2Peer connection ....... anyone help me out plss

NullPointerException thrown

There is a NullPointerException thrown in file 'Metafile.java' at line 86

byte[] announceByteString = ((ByteBuffer) rootDictionary.get(toByteBuffer("announce"))).array();

Downloads

I cant download multiple torrents.

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
TorrentDisk tdisk = new PlainFileSystemTorrentDisk(metafile, output);
tdisk.init();

IncomingPeerListener peerListener = new IncomingPeerListener(randInt(5555,7777));
peerListener.start();

Torrent torrent = new Torrent(metafile, tdisk, peerListener);
torrent.startDownload();

while (!torrent.isCompleted()) {

    try {
        Thread.sleep(500);
    } catch(InterruptedException ie) {
        break;
    }


    torrent.tick();

    nombre = torrent.getMetafile().getName().trim();
    ratio = torrent.getPeersManager().getActivePeersNumber();
    size = (int) torrent.getMetafile().getLength();
    long actual = torrent.getTorrentDisk().getCompleted();
    progreso = (actual * 100/ size);
    System.out.printf("Got %s peers, completed %d bytes \n",
            torrent.getPeersManager().getActivePeersNumber(),
            torrent.getTorrentDisk().getCompleted());
    System.out.println(torrent.getMetafile().getLength());
}

torrent.interrupt();
peerListener.interrupt();

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 to add it to the peers manager. It seems that everything is typed as TorrentPeer and not the superclass Peer.

save torrent file error

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 torrent file,after that save a new torrent file,how to do that?

EOFException

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)

Create a README.md

The project would benefit from a README.md noting the project license and execution of the sample class, e.g.:

java -cp target/wetorrent-1.0-SNAPSHOT.jar org.bitlet.wetorrent.Sample ubuntu-14.04-server-amd64.iso.torrent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.