[Help]Sending Data

Posts 17 of 7 · Page 1 of 1
[Help]Sending Data
I want to transfer a number from a Console Application I made in C++ to another Console Application also made in C++ but they are on different computers on the same network.
For example:

Send the number 1 from PC1's app to PC2' app and then do something based on the results on PC2.

Is that possible?
Anythings Possible..Its C++ where talking about
But i never tried anything like that. I would tell you to search google but i dont think its going to help..
Quote Originally Posted by whit++ View Post
Anythings Possible..Its C++ where talking about
But i never tried anything like that. I would tell you to search google but i dont think its going to help..
google rarely actually helps me :X it has a lot of info but a lot of bullshit too....

@topic: im a complete newbie when it comes to c++, so i wouldnt even know where to start
Yeah, I already tried but to no avail...
You'll have to set up some kind of connection, either TCP/IP or Telnet, FTP, or something else, idk
To do that you'll need to use some sort of API to set up a connection. So you'll need this: Windows Sockets 2 (Windows)

Finally you have to create some kind of background program or daemon to start up the program on the other computer. Sort of how Itunes keeps an update daemon running in the background to detect update messages from apple's servers.

The last part (creation of the daemon is only important if you don't want the main app to be running the entire time.
WinSock makes this unbelievably easy btw =P
You could also use shared data. I share some of my hard disks over my network, in the past I used these to share data between two applications (actually a driver on another computer through IOCT & IRP) But the setup is the same
Posts 17 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?