Hi NG,
How to do two-way-interprocess communication using java?
Imagine a client/server setup where the client can request a number of
functions to be performed by the server.
Since the server sometimes pushes messages to the client(s), and no
assumption can be made regarding the client and when/how often it is
running, a second program (call it CPM) is running on the client machine.
This program receives the messages, processes them and stores the result of
this processing.
When the client tries to execute a call to the server, it should contact the
CPM-program using inter-process-communication.
The client will send a description to the CPM, indicating the intended
action. The CPM then processes this request, compares with the stored result
of received/processed messages and replies to the client.
If both programs where written in java, what would you suggest?
If the CPM-program was written in C++ and used a named pipe called
\\.\pipe\MyPipe , What would you suggest?
--
Kind Regards
/Kasper
How to do two-way-interprocess communication using java?
Imagine a client/server setup where the client can request a number of
functions to be performed by the server.
Since the server sometimes pushes messages to the client(s), and no
assumption can be made regarding the client and when/how often it is
running, a second program (call it CPM) is running on the client machine.
This program receives the messages, processes them and stores the result of
this processing.
When the client tries to execute a call to the server, it should contact the
CPM-program using inter-process-communication.
The client will send a description to the CPM, indicating the intended
action. The CPM then processes this request, compares with the stored result
of received/processed messages and replies to the client.
If both programs where written in java, what would you suggest?
If the CPM-program was written in C++ and used a named pipe called
\\.\pipe\MyPipe , What would you suggest?
--
Kind Regards
/Kasper
Comment