atek-cloud / spork

[CLI app] Peer-to-peer socket magic in the air
https://spork.sh
MIT License
288 stars 9 forks source link

Clarify whether the sockets are UDP or TCP? #4

Open CMCDragonkai opened 3 years ago

CMCDragonkai commented 3 years ago

Given that you're running HTTP, I assume this must be using a stream-like TCP socket. But if you're doing p2p with NAT-busting, you must need to use UDP. So what's the translation between UDP and TCP here? Is there uTP under the hood?

Would be nice to have this clarified in the README.md.

pfrazee commented 3 years ago

This is something that the Hyperswarm docs will hopefully cover. My current understanding (which could be outdated) is that uTP is what's used when NAT busting is involved.