5.5. Writing Request/Response Applications in C++
In the request/response examples, we write a server that accepts strings from clients and converts them to upper case, sending the result back to the requesting client. This example consists of two programs.
client.cpp is a client application that sends messages to the server.
server.cpp is a service that accepts messages, converts their content to upper case, and sends the result to the amq.direct exchange, using the request's reply-to property as the routing key for the response.
Start server before you start client, since the client only works if there is a running server.
Insert the code from each example into the skeleton at Section 5.1, “Creating and Closing Sessions”.