TCP vs UDP for Peer-to-Peer communication in the protocol #37
Aradhya2708
started this conversation in
General
Replies: 1 comment 1 reply
-
|
TCP is the default choice when you want to transfer messages reliably. Recent versions of Windows (since XP) don’t allow two processes to bind and listen to the same port. However, it does allow one process to bind to On Linux, you can use the In my opinion, you can keep a master process and transfer information via IPC. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
UDP is objectively easier to implement but could it be more susceptible/prone to NAT blocking?
TCP is used in most known P2P sharing applications (ipfs for e.g.,), and is reliable for files and content of our application, but Windows OS does not allow binding two processes to the same port (SO_REUSEPORT system option), or does it?
Beta Was this translation helpful? Give feedback.
All reactions