Skip to content
/ bunet Public

Best Users Network-Ending Treaty. Utility to syncronize list of known hosts in peer-to-peer network. Based on Dijkstra. Some data manipulations may be terrifyinig or can cause mental trauma

Notifications You must be signed in to change notification settings

nov3o/bunet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

drawing

Best Users Network-Ending Treaty

A prototocol based on Dijkstra algorythm to syncronize hosts lists for peer-to-peer netwok. Supplementary project for Networks Coursework, made up quick-and-dirtyin a garage in couple hours, but I'm satisfied a lot

You are able to use it in command line and as a module in Python as well and pass command arguments to bunet program

Ready for usage on multiple machines, but tested on single with many users. Requests are performed via ssh: ssh username@hostname command. But it is adviced to create user bunet and create ~/.config/bunet in his home directory

Usage:

usage: bunet [-h] {get,save,buildnet,buildnet-share,share,add,clear} ...

options:
  -h, --help            show this help message and exit

command:
  Action to perform

  {get,save,buildnet,buildnet-share,share,add,clear}
                        Command description
    get                 Get node's hosts list
    save                Add your entered hosts to node's list
    buildnet            Retrieve all hosts from network
    buildnet-share      Retrieve all hosts from network and share this list with others
    share               Share your existing hosts list with others
    add                 Add new nodes via arguments
    clear               Remove bunet list

Requirments

  • python3
  • ssh and exchanged SSH keys for password-less authentication of only your node with others
  • bunet is placed in /usr/bin or used anyhow else to act like bash-y command
  • User(node) is owner of ~/.config

Hosts list is stored in ~/.config/bunet

About

Best Users Network-Ending Treaty. Utility to syncronize list of known hosts in peer-to-peer network. Based on Dijkstra. Some data manipulations may be terrifyinig or can cause mental trauma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages