The code below demonstrates the minimal number of changes required to
make the examples from the text execute under Winsock. Further
changes can be made to make this code more Winsock complaint (e.g.,
test socket() failure return value as SOCKET_ERROR rather than < 0).
WinSock Example code:
Winsock Tutorial from Willis Marti (Texas A&M)