Assistance with console based program

I'm trying to write a console program, but i'm having difficulty with three things:

1. > Making two or more console apps communicate with each other.

2. > Making two console programs on separate computers communicate over a LAN.

3. > Making a console program perform processes while waiting for user input.

Any help?
Last edited on
For all three: What have you tried so far?
for number 1, I tried storing the data to files and reading the data with the second program but I kept getting screwed up results.
closed account (z05DSL3A)
Read up on interprocess communications (IPC), the following may be a good place to start:

http://msdn.microsoft.com/en-us/library/aa365574(VS.85).aspx
I am specifically trying to do this in console only... (it's meant to have a commandline look)

Above link is useful but I would like to do the project without windows.h if possible.
+1 to Grey Wolf. IPC is what you want.
closed account (z05DSL3A)
How about Boost.Interprocess?
http://www.boost.org/doc/libs/1_37_0/doc/html/interprocess.html

I've learned about a library called winsock and it looks like it might be what I need but I can't find any good documentation.
Anybody know where I could find some?
Right now i'm trying to incorporate IPCs but i'm having problems.
closed account (z05DSL3A)
http://msdn.microsoft.com/en-us/library/ms740673(VS.85).aspx
I did use that site and it helped, but gave me no example code, at least not any that I could find. I have only been there for about half an hour, but I am going to keep looking.
closed account (z05DSL3A)
OK, Click on the second link I posted, This will take you to the Windows Sockets 2 (Winsock) section of MSDN.

On this page is a table of what is In This Section, find where is says Getting Started with Winsock and click on it. This will take you to a page that if you follow the links will walk you through creating both client and server apps.
Oh, awesome. That helps a lot, I hadn't looked at that link. Thanks, I just tried a quick test program and it worked perfectly.

I still need help with question 3 though, I haven't been able to find anything for it so far.

3. > Making a console program perform processes while waiting for user input.
Topic archived. No new replies allowed.