How to write a simple socket program in C
mymicrocontroller.com