A simulation of a peer-to-peer connection where there are several nodes and each node sends a message to other node. A message consists of a piece of data which is a random number and sender id. The code is written in java using socket programming.
- clone the project
- from terminal type
java main.java
followed by 2 numbers, number of nodes and number of messages - alternatively run it using intellij IDEA and from prefernces add the 2 numbers in command arg field.