how to send a variable on net?

Hello,
Lets say I have this meaningless program:


1
2
3
4
5
6
7
#include <conio.h>

main()
{
      char a;
      a=getch();
}



How can I send what I've enterd into variable a to another .exe self made program which is located in a non-local-network-pc?

Please throw me a bone here

"Extreme thanks in advance!:)"
Neo,
BUMP, please help me, or at least give me some hints
Google

- networking
- tcp/ip
- xml
- shared memory
- inter process communication
If you are only going to send chars and only do it once, you could just use sockets, and set-up a dedicated client/host.

On Windows, use WinSock:
http://johnnie.jerrata.com/winsocktutorial/

Although I would suggest using Boost in order to do it, since it is portable...I think Boost.asio works:
http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/overview/networking.html

EDIT: Lol, same post time >.>
Last edited on
thank you very much, will get on it right away!
Topic archived. No new replies allowed.