What I want to do is as follows:
I want to have a client-server type of relationship between one server process and several client processes. But my problem is, that these client processes will run in different terminal windows and they will require standard input. Therefore, running the MPI program with the same mpirun
call will not do it for me, e.g.:
mpirun -np 2 --stdin 1 ./server : -np 3 ./client
In this example, standard input is also directed to only one process, which is of course another shortcoming for me.
One last point is, that I want to be able to create a new client process at any time, which can also communicate with a running server process.
So, what kind of an approach do I need to follow to accomplish these? I've been searching for a couple days, I am only getting more confused every time I read a different tutorial.
Background info, in case necessary: I am running on Ubuntu 12.04 and using Boost MPI. Still, a suggestion concerning any platform/MPI implementation is welcome.