Network Programming

I want to learn network programming systematically on windows, but I know very little about it.

Who can recommend some classic books or some learning website!

Thanks!
Beej's guide has seemed consistently popular: http://beej.us/guide/bgnet/
Any More?
You should take a look at cURL: https://curl.haxx.se/libcurl/c/libcurl-tutorial.html although it doens't offer much in the way of saved work, it does make for easier to read code.

Another option is Boost::Asio: http://www.boost.org/doc/libs/1_60_0/doc/html/boost_asio/tutorial.html it's kind of overkill for most uses unless you are already including another part of the library. But the success of the suite speaks for itself.

SFML has a networking module that I feel doesn't get enough attention: http://www.sfml-dev.org/documentation/2.3.2/group__network.php

If you're committed to using WinSock2 then keep in mind that it's based on Berkeley sockets and even uses the same functions (the ones with no capital letters) so a lot of the tutorials for other systems are still applicable. There are a few oddities, like the "select()" statement being functionally broken in WinSock prior to Vista, but there aren't too many of those issues left in the modern OS releases.
Last edited on
Topic archived. No new replies allowed.