Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement simple ping/pong app and package #6

Closed
Tracked by #1
matjazv opened this issue Nov 18, 2022 · 0 comments · Fixed by #23
Closed
Tracked by #1

Implement simple ping/pong app and package #6

matjazv opened this issue Nov 18, 2022 · 0 comments · Fixed by #23
Assignees
Milestone

Comments

@matjazv
Copy link
Contributor

matjazv commented Nov 18, 2022

Description

Implement a ping/pong application for a starting point of a new P2P module.

  • Implement multi-address support.
  • Implement (basic) peer handling.
  • Implement communication between peers using stream.
  • Implement/update unittests.

Acceptance Criteria

  • Two peers are able to communicate with each other in a local environment.
  • All new code is unit tested.

Additional Information

@matjazv matjazv self-assigned this Nov 21, 2022
@shuse2 shuse2 added this to the Sprint 1 milestone Nov 21, 2022
shuse2 pushed a commit that referenced this issue Nov 28, 2022
### What was the problem?

This PR resolves #6

### How was it solved?

- `libp2p` library was introduced
- peer is using `TCP` and `QUIC` as a transport protocol
- peer is able to send a message (currently only a `string`) to another
connected peer
- very simple and limited handling for a received message is implemented
- peer can ping another peer and receive a response from a pinged peer

### How was it tested?

- New unit tests were implemented.
- They were locally tested.

### Note

Majority of currently implemented functionalities have very basic
behavior and will be further extended within other issues in
[epic](#1). This
implementation serves as a starting point for a new P2P package.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants