Banyan is a simple peer to peer application protocol
pip install banyancli
- File Sharing over LAN
The workflow is organized as follows
- Initialization - Peer Starts up with a friendly name, which is visible on local network
- Peer Discovery - Peer Sends a broadcast to all other hosts in local network. Other peers will respond to it.
- Synchronization - Peer Receives file list from all other Peers
- Transfer - Peer can receive file from any other Peer
- Python 3.6 or later
- Couple of machines to work with and test
After installation, run as
banyan
It will open up an interactive shell
Command List
Command | Options | Description |
---|---|---|
init |
name [max_conn=5] [bcast_ip=255.255.255.255] |
Starts the Peer |
discover |
- | Discovers other Peers in Current Network |
sync |
- | Gets the list of Publicly Available Files |
who |
- | View the list of Peers in the same network |
ls |
[name] |
Lists the files of the Peer name. If not given, Lists all Peers files |
search |
filename |
Searches files in available files' list |
status |
- | View the status of current Peer |
download |
peername filename |
Downloads the file |
exit |
- | Go out of Banyan Shell |
- Efficient Peer Discovery Methods (other than Broadcast)
- Efficient File Transfer Approach (now the peek speed is around 1.6 Mbps over LAN)
- Extending the service to Internet