https://github.com/marchellodev/p2p_matrix_go
https://github.com/marchellodev/p2p_matrix_go
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marchellodev/p2p_matrix_go
- Owner: marchellodev
- License: mit
- Created: 2021-03-23T12:20:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-28T12:49:51.000Z (about 5 years ago)
- Last Synced: 2025-01-20T22:46:47.983Z (over 1 year ago)
- Language: Go
- Size: 522 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# P2P Matrix Go
This application is the backend for the [P2P Matrix project](https://github.com/marchellodev/p2p_matrix). it is a
testing environment for P2P algorithms that simulates the Internet connections (speed limitations and latency depending
on the geographical location)
## Running
`main.go` contains an example network - where every node knows everyone and has every file on the network. While not
efficient, let alone practical, it is a perfect testing network for this project.
Before running it, make sure that you have [Golang](https://golang.org/dl) installed.
Then, execute:
```shell
go run main.go
```
To create a shared library for P2P Matrix, run either of those depending on your system:
```shell
go build -buildmode c-shared -o lib.so # Linux
go build -buildmode c-shared -o lib.dll # Windows
go build -buildmode c-shared -o lib.dylib # MacOS
```
## License
MIT