W
wostaney
Dear All,
I got a problem in a Java program which is used to integrated with
CyDesk client.
Situation:
I want to develop a little Java program which run in desktop.
This little program has to communicate with the CyDesk client
(installed in desktop also), like sending commands and receiving
messages.
CyDesk client is a client of PhoneSystem which is connected to a
CyDesk Server.
CyDesk client provides a socket connection for low-level integration,
but CyDesk client is a socket client!!!
That means my little program has to act as a local server to handle
all communications.
Little Program ======command=====> CyDesk Client
Little Program <======message===== CyDesk Client
Problem:
The little program has to send command (String) to CyDesk Client, when
I press some button in little program.
The little program has to receive message from CyDesk Client, when
CyDesk client has some message(String) to show me.
These two actions do not work in pairs, it means not one command then
one message back.
It means I can send any command in any time and receive messages
anytime if there are.
I can only handle one type of actions without blocking, otherwise it
hold in readLine() in my little program.
Is there any solution for this situation?
Thank you very much for helping me and reading this message.
I got a problem in a Java program which is used to integrated with
CyDesk client.
Situation:
I want to develop a little Java program which run in desktop.
This little program has to communicate with the CyDesk client
(installed in desktop also), like sending commands and receiving
messages.
CyDesk client is a client of PhoneSystem which is connected to a
CyDesk Server.
CyDesk client provides a socket connection for low-level integration,
but CyDesk client is a socket client!!!
That means my little program has to act as a local server to handle
all communications.
Little Program ======command=====> CyDesk Client
Little Program <======message===== CyDesk Client
Problem:
The little program has to send command (String) to CyDesk Client, when
I press some button in little program.
The little program has to receive message from CyDesk Client, when
CyDesk client has some message(String) to show me.
These two actions do not work in pairs, it means not one command then
one message back.
It means I can send any command in any time and receive messages
anytime if there are.
I can only handle one type of actions without blocking, otherwise it
hold in readLine() in my little program.
Is there any solution for this situation?
Thank you very much for helping me and reading this message.