<<

Winsock Programmer's FAQ
Section 6: Example Programs

>>

Legal Stuff: Several of the examples here are in the public domain, and the rest are free to use and copy. Use them, learn from them, enjoy them. But please understand that there is NO WARRANTY OF ANY KIND attached to these examples.

I test all of these examples with the command line compilers from Borland C++ 5.0 and Visual C++ 5.0. All of these examples can, in principle, be made to work with older compiler versions, but since I like to make use of newer C++ features, you may have to change some of the code to get the examples to compile.

Although the code is C++, it's mainly as a "C++-as-better-C" style. There is no object-oriented code here, yet.

The examples assume a compiler capable of generating Win32 console executables. This allows me to avoid all the GUI stuff: it just gets in the way when teaching Winsock. All of these examples currently use the Winsock 1.1 API, except a few that are marked, which require some Winsock 2 feature.

The header comment for each example shows how to compile that example.

The Examples


<< Miscellaneous Resources Basic Example Programs >>
Last modified on 6 July 2000 at 04: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