Skip to content

Added pingpong sample app#3

Open
hiimanget wants to merge 1 commit intonadeemabdulhamid:mainfrom
hiimanget:main
Open

Added pingpong sample app#3
hiimanget wants to merge 1 commit intonadeemabdulhamid:mainfrom
hiimanget:main

Conversation

@hiimanget
Copy link
Contributor

@hiimanget hiimanget commented Feb 3, 2023

Added a simple ping-pong app that can be executed with some commands but it is not a p2p app, just a ping-pong code. Also, created new packages for apps.

The following images are a process of the ping-pong app.

  1. Initialize a new node (id: "a", host: "localhost", port: "10000").

1

  1. Initialize another node (id: "b", host: "localhost", port: "10001").

2

  1. Send a ping to node "b" from "a".

3

  1. "b" received a pong from "a".

4

commands

  • init <id> <host> <port>: initialize node info
  • ping <host> <port>: send a ping message to the host
  • exit: exit

@hiimanget hiimanget closed this by deleting the head repository Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants