The TCP/IP MFC Client For Windows
With the first two pieces of the puzzle in place, all that was left was to write a client on the Windows platform that would receive the information from the StrongARM server application. Once it had pulled the information off of the TCP/IP socket that had been established, it just needed to use this information to manipulate the mouse pointer.
Essentially, all that we needed to do was to write a client that behaved as our server expected. The client needed to:
The trickiest part of running the client was that you had to know the IP address of the server before you could connect. However, once you knew it, you simply had to enter it into the GUI:
and you were ready to go.
Everything we needed was now in place, and the mouse worked as we had hoped.
The code for the MFC program is posted in the following places: