Winsock Programmer’s FAQ Section 5.2: Samples: Tutorial Code |
“Beej’s
Guide to Network Programming” is an ebook tutorial
on BSD sockets. The guide has very little to say that’s
Windows-specific, as the guide was originally written to cover
portable BSD sockets programming. You thus lose out on coverage
of all WSA*
things in Winsock, and have to translate
BSDisms in the code to work with Winsock. Still, BSD sockets is
the basis of Winsock, and you’ll want to learn portable BSD
sockets programming anyway if you write for other platforms.
The Vijay Mukhi Computer Institute offers a Winsock tutorial. My main gripes are that the English is a little broken, and the code uses variables like “k” and functions with names like “abc.” It also hasn’t been updated in years. Still...free tutorial.
This FAQ’s basic examples section has several programs that illustrate the various strategies for accessing Winsock. The samples are structured similarly when practical, to make it easy to see the essential elements that differ when you move from one Winsock I/O strategy to another. The explanations above each program may also prove helpful to those just learning Winsock, though it’d be a stretch to call these “tutorials”.
The samples from the highly-respected book Windows Sockets Network Programming are available online here.
<< Winsock Libraries and Controls |
Samples: Useful Code >> |
Updated Fri Dec 16 2022 12:23 MST | Go to my home page |