Hello
You could refer the documentation defined here:
https://github.com/CopernicaMarketingSoftware/AMQP-CPP
* Publish a message to an exchange
*
* You have to supply the name of an exchange and a routing key.
RabbitMQ will
* then try to send the message to one or more queues. With the
optional flags
* parameter you can specify what should happen if the message could
not be routed
* to a queue. By default, unroutable message are silently discarded.
*
* This method returns a reference to a DeferredPublisher object. You
can use
* this returned object to install callbacks that are called when an
undeliverable
* message is returned, or to set the callback that is called when the
server
* confirms that the message was received.
*
* To enable handling returned messages, or to enable
publisher-confirms, you must
* not only set the callback, but also pass in appropriate flags to
enable this
* feature. If you do not pass in these flags, your callbacks will not
be called.
* If you are not at all interested in returned messages or
publish-confirms, you
* can ignore the flag and the returned object.