Sergey, That's an excellent example. It works fine but with one querk. When I run both client and server in the same instance of FoxPro on a single computer I can close either or both forms. If I run client and server on different computers, closing one form will make the other hang. Have you had experience with using Winsock? Do you have any idea why a form would hang? Thanks, Allen
>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