/gossip

Primary LanguagePython

gossip

Gossip program for CS 6410 at Cornell. Communicate via pull-requests over TCP/IP connections on local network.

Modules are a bit disorganized. Server handles incoming connections, Client sends outgoing connections, Controller reads user inputs, Update updates the global variables in var.py, main is the entry point of the program.

Command List:

0-9 – update own digit;

+ipaddress – connect to ipaddress;

? – prints map;

! – prints map with timestamps;

i – prints its with corresponding 3 most updated ports;

b – prints blacklisted nodes;

a – switch to adversarial mode

q - exit program

python3 main.py to run

Enter IP address and port to receive incoming connections. (You can only assign the port, and IP address is assigned automatically from your machine, but enter it accordingly to initialize variables correctly)