seemoo-lab / opendrop

An open Apple AirDrop implementation written in Python
https://owlink.org
GNU General Public License v3.0
8.49k stars 265 forks source link

Sending to multiple devices #29

Open Titaniumtown opened 4 years ago

Titaniumtown commented 4 years ago

I was wondering if there was a plan for sending to multiple devices simultaneously? Or even better, having a argument to either opendrop find or opendrop send that would find a device then automaticly attempt to send a file to it.

Possible example of sending a file to multiple devices: opendrop send -f "file.png" -n "device name" -r 0,1,2,3,4

Possible example of automaticly finding and sending file: opendrop find --auto-send -n "device name" -f "file.png"

schmittner commented 4 years ago

Regarding your first idea: you could easily script this.

Regarding your second idea: I thought about such a design but decided against it since you should know who you are sending the file to before actually sending the file. The indices are not deterministic as they depend on the order in which devices are discovered. I know the current solution is not the most elegant but at least gives you control over who the receiver will be.

Titaniumtown commented 4 years ago

Regarding the second idea, opendrop find should automaticly save the results, so you don't have to constantly stop and start it.

schmittner commented 4 years ago

The results are stored on disk. You don't have to run find every time.

Titaniumtown commented 4 years ago

Yes I know that, but to update the discover.last.json file, you have to press enter to stop opendrop find. What I am trying to say is that opendrop find should automatically update the discover.last.json file without the need of pressing enter, which stops opendrop find.