3 ms·
> ... like showing snippets of C code from the networking stack ... I think this point deserves extra attention. I've been finding that in situations like thi
by roenxi 5y ago
> ... like showing snippets of C code from the networking stack ...
I think this point deserves extra attention. I've been finding that in situations like this it is often much faster to read the implementation source code than try to work it out from documentation and trial-and-error. Something in this (quite realistic) vignette is that there is a lot of potential to mis-learn when the Linux source code for this is probably quite short and readable.
This is a particularly useful skill for terse languages where the source code is easy to read. And a good time to feel a bit of empathy towards the poor souls who are forced to use closed source software.
In fact, I now know what I'll be skimming through tonight ... [0]. Not short, but a lot more useful than guesswork.
[0] https://github.com/torvalds/linux/blob/master/include/net/sock.h#L118 https://github.com/torvalds/linux/blob/master/include/net/so...
- carlmr 5y agoAside from the code I was wondering how much of this is the spec and how much is the specific implementation of the network stack they're using. Is this the same on MacOS? On Windows?