The Stevens is *the* book for beginning UNIX network programming.
I consider this book a must have.
http://www.amazon.com/exec/obidos/ASIN/013490012X
Also check out Socket FAQ, if you haven't
http://www.developerweb.net/sock-faq/
There's lots of info over there.