Maybe this could help
SAMPLE: Use the Winsock ActiveX Control with Visual FoxPro mskb #
315124.
>I have an app that will perform transactions between servers using TCP/IP. I have created a VFP6 transaction processor that has the Winsock object listening and then creates additional Winsock objects that return results and then close. No problem.
>
>However, I'd like to create a program for testing that is just the reverse: it initiates a TCP/IP transaction string to a known IP and then listens for the result. I don't know how to do this and have not seen any examples. Any nudge in the right direction would be greatly appreciated!
>
>Thanks,
>Allen
--sb--