Expand description
The parts of a file a download fetches, each over its own connection: the whole file for one connection, or for several, stretches that end where the next begins.
StructsΒ§
- Live π
- A connection fetching a part.
- Part π
- A stretch of the file, and how much of it is saved.
ConstantsΒ§
- MAX_
CONNECTIONS π - The most connections one download opens, so a large
connections:canβt swamp a server. - MIN_
PART_ πSIZE - The smallest part worth a connection of its own.
FunctionsΒ§
- connection_
count π - How many connections a download opens when its call asks for
asked: at least one, and at mostMAX_CONNECTIONS. - split π
- A file of
totalbytes split into at mostconnectionsparts of nearly equal size, none smaller thanMIN_PART_SIZEunless the whole file is.