Winsock: Windows Sockets Samples

Click to open or copy the files for the Winsock samples.

The following samples are provided.

Sample Description
AppleTalk Using the AppleTalk PAP protocol.
Bcast Broadcast over UDP or IPX with SO_BROADCAST.
Dt_dll Debug Trace feature of checked build of Ws2_32.dll.
Globchat Client/server chat program.
Iocomplt Demonstrate the use of I/O Completion ports.
Ipxchat GUI chat sample showing Windows Sockets over IPX.
Nullprov NULL service provider, and sample install code.
Nwlink Using sockets over SPX.
Overlap Overlapped I/O + AcceptEx.
Ping Demonstrates raw sockets.
Rnr Registration and name resolution.
Simple Simple client, server, and IOCTL example.
Sockspx Simple IPX sample, including enumeration of local adapters.
Tp4 Using the OSI tp4 protocol, requires special run-time setup.
Ws2chat Windows Sockets 2 sample chat application.
Wsock GUID tutorial, includes demonstration of AcceptEx.

Several of the samples demonstrate Windows Sockets 1 functionality.  They are included here because they show good, general-purpose techniques, and because they demonstrate that building a Windows Sockets 2 application is often as simple as recompiling and relinking.

Building SDK Samples