How to write a simple socket program in C | Hacker News Reader