You may be interested in Johnnie's Winsock Tutorial.
"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C