If you want an intro to socket programming in C that's been fairly scrutinized by real C programmers look at the beej tutorial. If you want something substantial and comprehensive get a copy of Unix Network Programming Volume 1, third ed.