I have a client that sends a request to a server, and the server answer to him.
I want to do this in an asynchronous way. The client sends a request, the server calculates it and returns it to a service in the client. How can i do this?
p.s. let's say the client wants to do add(int a, int b) and the server needs to send the result to a service that run on the client.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…