dear soodvarun,
what is your OS, see if you want to do socket programming in linux then fine you can use any BSD socket book stevens or other...
if you want it for windows then any book on winsock will do.
tell me excatly which platform your are working on.
hope it helps
Rahul