TCP/IP Sockets in C by Donahoo and Calvert - Probably the best
handbook on sockets programming. I highly recommend this book as an addition
to your personal library. The book website has some very useful sample programs
(see here).
If you want to use the Microsoft Visual IDE to build sockets programs, see
here for helpful instructions. The net is that you must build a console
application and include wsock32.dll in the Project Settings / Object-library
modules list.
How to build CSIM20 programs from the command line is shown
here.
A tool to iteratively solve P and Q matrices can be found at the top
of the
Christensen tools page (I wrote this waaaaay back when I was a Ph.D.
student).