title: boost asio communicate between two threads c++
body: <p>I am using boost asio to create a client and server application. The situation is I have created a thread for instantiating the server object while the main thread would be instantiating the client object. Each of these objects have their own io_service which run independent of each other in the two threads.What I need now is I want to communicate some information from the server object back to the main thread without using the socket between the client and server. The information which I need to pass is the port which the server has acquired using port(0) and the request which the server has received from the client. </p>