marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
3.01k stars 795 forks source link

Document TCP peer-to-peer connection setup in Chapter 13 #433

Closed de0u closed 6 years ago

de0u commented 6 years ago

I realize that you might reject this as extraneous, or substantially re-word my suggested text, but as the book stands it furthers the common misconception that TCP supports only the client-server connection pattern. In fact if two programs specify each other's IP addresses and port numbers via connect() TCP is supposed to set up the connection.

marijnh commented 6 years ago

Thanks. But I do indeed think that, at the level of this book, this is extraneous. While it is possible to use TCP like this, it's rarely done, and not really relevant for people learning web basics.