I’m trying to implement a P2P TCP network in Elixir (with ranch
and gen_tcp
) but I’m experiencing some issues and can’t understand the reason.
https://github.com/und0ck3d/elixir_p2p_network_case
I’ve created the repo above that implements the network and reproduces the issue I’m going through. Please check the README.md
file where I detail the issue.
I’d like someone to explain to me what I’m doing wrong and also if the code can be improved somehow (I’m still learning GenServers, Supervisors and OTP in general).
Thanks in advance for your support and happy holidays everyone!