libp2p / docs

Documentation site for the libp2p project.
https://docs.libp2p.io/
Other
60 stars 87 forks source link

Question in Stream Multiplexing #364

Closed junekhan closed 4 months ago

junekhan commented 5 months ago

This doc says Two libp2p peers may have a single TCP connection and use different port numbers to distinguish streams., but to my prior knowledge, a TCP connection involves a pair of ports on source and destination devices, respectively, so to distinguish streams with different port numbers over a single TCP connection really confuses me. It sounds like a TCP connection can have as many ports involved in libp2p implementation. Could someone please help me on this?

Stebalien commented 4 months ago

Yes, that's just incorrect. Could you make a PR to remove that sentence?