cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how to send a variable on net?
how to send a variable on net?
Sep 26, 2008 at 10:53pm UTC
neo4life
(13)
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,
Sep 29, 2008 at 5:59pm UTC
neo4life
(13)
BUMP, please help me, or at least give me some hints
Sep 29, 2008 at 8:19pm UTC
Zaita
(2770)
Google
- networking
- tcp/ip
- xml
- shared memory
- inter process communication
Sep 29, 2008 at 8:19pm UTC
firedraco
(6243)
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
Sep 29, 2008 at 8:20pm UTC
Oct 2, 2008 at 3:15pm UTC
neo4life
(13)
thank you very much, will get on it right away!
Topic archived. No new replies allowed.