No I want this:
"ping" myApp -----------------------------> myProcess <Do something>
"pong" myProcess ------------------------> myApp <Do something>
No I want this:
"ping" myApp -----------------------------> myProcess <Do something>
"pong" myProcess ------------------------> myApp <Do something>
Your process has to read commands from its standard input and write responses to its standard output. The way it does that is out of the scope of this question as it highly depends what the worker application is written in. For example you can use select() or poll() if available or a socket notifier if using Qt with an event loop.
bunjee (22nd January 2009)
Bookmarks