https://github.com/scientifichackers/network_file
A dead simple Dart library, to find and share files across devices on a network.
https://github.com/scientifichackers/network_file
Last synced: over 1 year ago
JSON representation
A dead simple Dart library, to find and share files across devices on a network.
- Host: GitHub
- URL: https://github.com/scientifichackers/network_file
- Owner: scientifichackers
- License: mit
- Created: 2019-02-12T02:31:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T11:09:07.000Z (almost 7 years ago)
- Last Synced: 2025-01-25T00:28:13.423Z (over 1 year ago)
- Language: Dart
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Network File
Network File let's you transparently find,
and share files across several other devices in a network running Network File.
Works anywhere `dart:io` works.
## How?
Network file works like this -
- When a device wants to download a file, (by invoking `NetworkFile.getInstance().findFile()`),
it issues a UDP broadcast request.
- When the UDP broadcast packet reaches a server (created by `NetworkFile.getInstance().run()`),
the server responds if it has the file.
- Once a server responds, the client/server will transfer this file using plain old HTTP.
That's it.