<<

Winsock Programmer's FAQ
Section 5.2: Sample Programs

>>
  • The examples from this FAQ have been collected and indexed here. These show basic Winsock tasks, including how to compile basic Winsock programs. The code encapsulates a number of useful techniques, such as dealing with the complex Winsock structures (all those conversions!) and proper ordering of calls.
  • The samples from the highly-respected book Windows Sockets Network Programming are available online here.
  • Stardust Technologies has made a simple "chat" program available.
  • The Vijay Mukhi Computer Institute offers a Winsock tutorial. The English is a little broken, and the code uses variables like "k" and functions called "abc," but what the heck, it's free.
  • Jim Frost's "Windows Sockets: A Quick And Dirty Primer" is a short introduction to programming Winsock. It doesn't provide enough information to let you build "real" programs, but it isn't 500 pages of dry technical material, either.
  • Wayne Hoxsie has made available a skeleton Winsock program that uses BSD-style blocking sockets and threads.
  • Lewis Napper has made available the source code from his fine book, WinSock 2.0.
  • Donald C. Asonye has a collection of small Winsock programs online. They include a full-featured pinger, a "finger" client and a small FTP client.
  • An earlier version of WS_FTP is available with complete source code. The code is said to be quite synchronous, and you'll have to extract the FTP code from the UI code, but it may prove useful to you.
  • Dave Cole has made a fairly-complete telnet program available for free. Be careful about the license, though: it's GPL'd, so you can't include any of dtelnet's code in your own program without making your program free as well.
  • Spencer Low has a page that focuses on programming Unix sockets. There's a section of it that is useful to Winsock programmers: the Sample Source code.
  • Davide Libenzi has a page linking to several Winsock programs licensed under the GPL whose code may be educational. These include SMTP and POP servers and clients, a very basic HTTP client, and a network packet sniffer. (The latter item is reviewed elsewhere in the FAQ.)
  • Felix Kasza has a page with many Win32 samples on it, nicely organized into categories. In the Network category, there are a few dozen items on the Net*() API functions, and there's an item on I/O completion ports. The author wrote the latter item because he found the Platform SDK example less than helpful.

<< Winsock Libraries Debugging Resources >>
Last modified on 28 June 2000 at 05:48 UTC-7 Please send corrections to tangent@cyberport.com.
< Go to the main FAQ page
<< Go to my Programming pages
<<< Go to my Home Page