Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 504 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 504 Bytes

P2P_Simulation

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.

Setup

  1. clone the project
  2. from terminal type java main.java followed by 2 numbers, number of nodes and number of messages
  3. alternatively run it using intellij IDEA and from prefernces add the 2 numbers in command arg field.