sen sen

Greenhorn
+ Follow
since Aug 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sen sen

Hi, Ranchers;
I am writing a java client socket.

The server socket is written in c++ and is running out there, it keeps listening to a socket on a specific port, once it receives something from the listened socket, it does some calculations and returns the results to the same listened socket(or possibly another one).

Now come back to my java client socket, it sends a string to the socket which it is connected to, and then it may need to do something else, once there is something returned from the server in the socket, the client should be informed and pick up the corresponding result for the string it just sent.
For this problem, I need an asynchronous callback mechanism in my client side, all I have is the server's IP and the port number the socket will be connected. I've read a couple of posts and articles in the web, but seems did not resolve my problem, can any one help out? any help is greatly appreciated.