am a newby with Windows named pipes, and have an obviously newby question.
The context of the program is this: I am trying to create a simple named pipe application on a single machine (no network!). A server creates a named pipe and a cllient reads/writes to the the server using a duplex pipe. The server is not multithreaded. The server has a main( ) and the client has its own main( ).
I am having huge conceptual difficulty understanding how the server with its main entry point can run at the same time as the client with its own main entry point. I keep thinking the two programs must be in different processes and therefore there must be a third program which creates the two processes, ie, the client and the server.
I have spent two fruitless days trying to hunt down examples of client/server and failed. The examples I have seen discuss the problem without clearly spelling out whether and how the client and server run concurrently. What I do know is that when I code the commonly available examples, I receive a message back saying that the pipe is could not be opened.
Any light that could be shown on this would be most helpful. If you could direct me to a good tutorial that clearly identifies the process architecture for this type of application that would be welcome too.
Sincerely,
Mark Allyn
The context of the program is this: I am trying to create a simple named pipe application on a single machine (no network!). A server creates a named pipe and a cllient reads/writes to the the server using a duplex pipe. The server is not multithreaded. The server has a main( ) and the client has its own main( ).
I am having huge conceptual difficulty understanding how the server with its main entry point can run at the same time as the client with its own main entry point. I keep thinking the two programs must be in different processes and therefore there must be a third program which creates the two processes, ie, the client and the server.
I have spent two fruitless days trying to hunt down examples of client/server and failed. The examples I have seen discuss the problem without clearly spelling out whether and how the client and server run concurrently. What I do know is that when I code the commonly available examples, I receive a message back saying that the pipe is could not be opened.
Any light that could be shown on this would be most helpful. If you could direct me to a good tutorial that clearly identifies the process architecture for this type of application that would be welcome too.
Sincerely,
Mark Allyn
Comment