Crates.io | EMNetChain |
lib.rs | EMNetChain |
version | 0.1.3 |
source | src |
created_at | 2024-07-10 12:59:45.91903 |
updated_at | 2024-07-12 18:53:29.265822 |
description | Chaining Server |
homepage | https://github.com/SkillfulElectro/EMNetChain.git |
repository | https://github.com/SkillfulElectro/EMNetChain.git |
max_upload_size | |
id | 1298211 |
size | 11,078 |
cargo install EMNetChain
EMNetChain -dis-addr 127.0.0.1:8080 -chain-addr 127.0.0.1:8081
{
"msg":"CONNECT",
"head":"127.0.0.1:1222",
"tail": "127.0.0.1:1224"
}
and then waits till server replies in this format
{"msg":"CONNECT","part":"head","ip":"127.0.0.1:1224"}
part specifies which udp socket must connect to that ipv4:port
{
"msg":"RECONNECT",
"id":"1234",
"ip": "127.0.0.1:1224"
}
ip will be ipv4:port of udp socket which lost its friend and server will reply this way if new friend is available
{"msg":"CONNECT","ip":"127.0.0.1:1223"}
you can write your own id gen server to make ids 100% unique
EMNetChain, inspired by WebRTC, is a robust toolchain for creating and managing internet nodes. Its user-friendly design, based on JSON-structured texts and multiple crates, makes it ideal for educational purposes and versatile applications like VPNs and blockchains. Its unique protocol ensures network integrity, even during disconnections, making it a reliable solution for network management.