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?
views:
300answers:
2
+13
A:
UNIX Network Programming, Volume 1, Second Edition: Networking APIs: Sockets and XTI.
Then go from there.
Sinan Ünür
2009-10-20 14:22:54
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
2009-10-20 14:33:30
Possibly stupid question: is it worth reading if you plan to program on windows?
nikie
2009-10-20 15:57:18
@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
2009-10-20 16:02:26
+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
2009-10-20 14:30:18