Giter VIP home page Giter VIP logo

fft's People

Contributors

dippi9845 avatar

Watchers

 avatar

fft's Issues

Scanning temp file

Add class reader for temp file

This class can read a temporary file that is interrupted the download and find the last number of block written.

Possible solution

First

The class splits the file in block of defined dimension.
now for every block create an checksum, and send it to the server, if is correct go to the next block
if is incorrect request the block to the server and replace it to the file.

Second

The class splits the file in block of defined dimension.
now for every block create an checksum, the same the server, then the client request the list of checksum
and try to deduce the missing blocks and the position, then the client request only the missing blocks
and place it in the correct position.

Third

In theory is the most probably case, couse the previos two solutions works even for a block loss, but this don't
but on the other hand is much more faster:

  1. split file into blocks and calculate checksum (client and server)
  2. if the list of client has the same hashs withthe same order, download the missing blocks keeping ordered

there futher to say, the last block is high probably that has a wrong checksum, couse the interruption of downlaod
doesn't coincide with the end of the block (probability 1/block_size tipically 1/1024 that is less than 0.1%) so the last checksum is different coused by the difference of length of the last block, so replace the block

Change protocol

change protocl of trasfission of file, this one is too slow

Temporary file

Make a way to store temporary file during download , then afert download compleated i will be named as the choosen file

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.