-
Start the bootstrap server inside
BootstrapServer/C/Linux- Compile
gcc P2PRegistry.c - Run
./a.out <port_number>eg:./a.out 5050
- Compile
-
Start Node servers (server.js)
- Install Node.js
- Run
npm install. - Start node servers with command line arguments
bsIP- IP of the bootstrap serverbsPort- Port of the bootstrap servername- name of the node in the format 'node_001'port- server porthopCount- max hop count in random searchwire- enables wire logsdebug- enable debug logs
- eg:
node server.js --bsIP=127.0.0.1 --bsPort=5050 --name=node_001 --port=4000 - eg: wire log enabled
node server.js --bsIP=127.0.0.1 --bsPort=5050 --name=node_001 --port=4000 --wire
at- prints the address tablename- prints the namefiles- prints the file list in the nodeexit- gracefully shuts down the nodesearch "harry"- searches for a stringdownload "Harry Potter" 192.168.1.6 4001- to download the given file from the given IP and Portcon-graph- draws the connectivity graphttl- number of hops want to check- http://graphonline.ru/en/create_graph_by_matrix
- past the cli output in to this url as text format
- Help to create servers.
- Please make sure to edit the $DIR variable to your working dir.
- If not execute use
chmod +x run.sh && ./run.sh