I'm running C++ on a Window's machine. Win8 and later Win2003 to be precise. |
http://msdn.microsoft.com/en-gb/library/windows/desktop/aa365574%28v=vs.85%29.aspx
The link referes to: Clipboard, COM, Data Copy, DDE, File Mapping, Mailslots, Pipes, RPC, Windows Sockets.
I would use File Mapping. Both ends share a block of memory and can read/write at will. You will need to synchronise access.
COM? I just wouldn't bother.
DDE? I thought this was deprecated 20 years ago. Just forget it. It's a precursor to COM and needs a server with very careful use.
Clipboard. Novel, and gives the the ability to see the messages by pasting into notepad--but really ...
Data Copy uses the clipboard in a particular way.
Mailslots and Pipes are Windows abstractions of datagram and streamed network communications. If you already know UDP/TCP and don't already know them, don't bother learning them.
RPC. No one uses RPC on Windows. It's been replaced by DCOM.
Windows Sockets. Again, more than you need, but if you ever decide to move your client and server onto different computers, it's exactly what you need.