Skip to content

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.

Notifications You must be signed in to change notification settings

lyudmilalala/P2P_Simulation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%