Ce contenu n'est pas disponible dans la langue sélectionnée.
14.2. Request/Response C++ Example
This example is a client and server that use the request/response pattern. The server creates a service queue and waits for a message to arrive. If it receives a message, it sends a message back to the sender.
The client creates a sender for the service queue, and also creates a response queue that is deleted when the client closes the receiver for the response queue. In the C++ client, if the address starts with the character
#
, it is given a unique name.
The client sends the string ping to the server. The server sends the response pong back to the same client, using the replyTo property.