News for hackers. Stuff that matters.
Re:About A comprehensive guide for Linux Network (Socket) pr... by f1shy on Sunday January 19, 2025 @12:59PM (#42759523)
Actually is extremely simple. I learned by looking the original papers[0]

As you say, just lots of bad examples online. The only thing that made me a little bit crazy at the beginning, was the fact that TCP is a stream without delimiters, no packet concept. Other than that, is not more difficult than writing and reading a file.

[0] https://docs-archive.freebsd.org/44doc/psd/20.ipctut/paper.p...

Another useful resource: https://beej.us/guide/bgnet/

Edit: beej seems already cited and beloved

Re:About A comprehensive guide for Linux Network (Socket) pr... by nesarkvechnep on Sunday January 19, 2025 @04:01PM (#42761769)
Thank you for referring to a BSD document. Most people have no idea that the modern reference network stack implementation comes from BSD and not Linux.