3 ms·
This is a very entertaining guide on socket programming that I came across about 10 years ago. An excerpt from the guide: Stream sockets are reliable two-way co
by susam 10y ago
This is a very entertaining guide on socket programming that I came across about 10 years ago. An excerpt from the guide: Stream sockets are reliable two-way connected communication streams. If you output two items into the socket in the order "1, 2", they will arrive in the order "1, 2" at the opposite end. They will also be error-free. I'm so certain, in fact, they will be error-free, that I'm just going to put my fingers in my ears and chant la la la la if anyone tries to claim otherwise.
Last year, I decided to read the recently published newer version of this guide that describes how to write code that works for both IPv4 and IPv6.
An archive of examples and experimental code that I wrote while reading this book: https://github.com/susam/lab/tree/master/c/beej-guide-to-network-programming https://github.com/susam/lab/tree/master/c/beej-guide-to-net...