You're right, it should be easy.
Basically, do..loop where you set up the connection and set it to wait for a connection.
What you do when you get a connection depends on the API they are following. But basically it's receive a string, send a string, in a do..loop.
Hank
>Hi Gang!
>
>I am being tasked with implementing a brand new interface between our old POS software and a new Pharmacy program.
>
>The Pharmacy program will be the client sending data over to the POS regularly and sometimes query info from the POS system.
>
>The POS system will behave as a Server, responding to the Client Pharmacy program.
>
>
>The Pharmacy Client will connect to our POS and maintain the connection. If dropped, it will try to reconnect to the POS.
>
>
>We have SOCKETOOLS and SOCKETWRENCH from Catalyst Software
https://sockettools.com/ for developing Client / Server systems.
>
>
>I've written many Client's using Socketools and VFP, but never a Server from scratch.
>
>Any ideas ? or suggestions ?
>
>Thanks
>Tommy