Hello John.
My development environment is Windows XP and I have Foxpro6,7 and 8. This example does not work on any version. I would appreciate any examples and or hints that would point me towards the right direction. My goal for now is simply to connect to another TCP socket from within VFP.If you have a copy of
MegaFox: 1002 Things You Wanted to Know About Extending VFP, we have a Winsock class in Chapter 9:
What is the winsock control?
The Winsock control (contained in: mswinsck.ocx, associated help file mswnsk98.chm) is a ‘socket’ object which allows you to connect to a remote machine and exchange data using either of two communication protocols:
• User Datagram Protocol (UDP) A connectionless protocol (analogous to passing a note) under which data is passed from one ‘peer’ computer to another without the need to establish an explicit connection.
• Transmission Control Protocol (TCP) A connection based protocol (analogous to a telephone call) which requires that a connection be explicitly established between one computer acting as the ‘client’ and another computer acting as the ‘host’.
So which protocol is best?
The answer, as so often in VFP, is that it depends. Each protocol has its benefits, and its drawbacks. Table 9.12 gives a side-by-side comparison.