Skip to content

Applying the stupidity of bogosort to file transfers is the height of folly.

Notifications You must be signed in to change notification settings

Roadcrosser/bogodownload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bogodownload

Bogodownload Banner

Applying the stupidity of bogosort to file transfers is the height of folly.

What is it?

Bogosort is the sorting method that constantly permutates an array until the result is sorted.

What would happen, then, if you applied those principles to file transfer? Bogodownload attempts to answer that question.

But what is it though?

Bogodownload is a file transfer system using websockets, currently implemented in Python.

The server uses Quart and the client uses aiohttp and websockets.

When the client requests a file from the server via a websocket connection, data will be returned as such:

{"size":1024, "pos":512, "byte":32}

The size parameter denotes the amount of bytes in the file, while the byte returned will correspond to its position in the file, and will be random for each message. The server will continuously send these json messages through the websocket until the client cuts off the connection, usually when it has finished downloading the entire file.

Bogodownload Banner

But why though?

I needed something to do after I finished making JSON-G okay? Get off my back.

About

Applying the stupidity of bogosort to file transfers is the height of folly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages