Open JamesTheAwesomeDude opened 2 years ago
libp2p
The interface looks absolutely hellish, but it surely can't be worse than DIY holepunching with zeromq?
the example programs seem to just be using libp2p as an additional abstraction layer "inside of" a connection the clients already negotiated (in that case, a TCP connection to localhost), and I cannot find any examples showcasing the ability of the py-libp2p library to connect remote users to one another.
OK, libp2p won't work for now since apparently they support no form of NAT traversal (all of: nat-pmp, upnp, ext addr discovery, STUN-like, line-switch relay, pkt-switch relay were listed as "not planned" on the homepage)
if all else fails, I suppose the nuclear option would be opening a "hidden service" socket
or we could punt the issue for a while by using something like mDNS discovery to limp along with "LAN games" for a while
leaps and vague bounds on this in ae6df7e779732350270d2d400dbb3573c089fc09
Fixed in 0940348f3a11fbeb5f41061969ac79a392da6ea5 (and b5d233c0017cd8ac90d3439b395f32f51e48eab2)
idk sheit about pier to pyer networking (yet) -- I am currently reading this fascinating document:
ØMQ: The Guide - Chapter 8: A Framework for Distributed Computing
note we have no actual requirement to use zmq; libp2p would be just as well, I suppose