tags:

views:

300

answers:

2

Could anybody please tell me which is best guide/book/material for socket programming in C? I am reading beej's guide for network programming but it just gives an overview.
Can you suggest any other books or guides?

+13  A: 

UNIX Network Programming, Volume 1, Second Edition: Networking APIs: Sockets and XTI.

Then go from there.

Sinan Ünür
agree. it's something like the Bible. after done, study Highly-concurrent Programming Models. suggest that if on a linux 2.6x study to use epoll, if win/msvc, try competion port. and new AIO. visit Effo NetMsg C/C++ open source project to learn more about epoll, network messaging and Highly-concurrent Programming Models.
EffoStaff Effo
Possibly stupid question: is it worth reading if you plan to program on windows?
nikie
@nikie Yes, IMHO. But, I remember benefiting from the 1995 edition of http://www.amazon.com/Windows-Sockets-Network-Programming-paperback/dp/0768682320/
Sinan Ünür
+3  A: 

Start with UNIX Network Programming as Sinan Ünür said. Read TCP/IP Illustrated Volume 1 after you have decent grasp on sockets. Don't skip this since it will increase your knowledge of the various network protocols dramatically. FWIW, I think that these two books should form the foundation of anyone that even considers doing network programming at the socket layer.

D.Shawley