[rabbitmq-discuss] rabbitmq-c confirmation
Alan Antonuk
alan.antonuk at gmail.com
Tue Jul 9 03:12:57 BST 2013
If you put a channel in confirm mode by running the amqp_confirm_select()
function, after calling amqp_basic_publish() you will need to check for a
basic.ack (AMQP_BASIC_ACK_METHOD) method from the broker. If you set the
mandatory flag while publishing you and your message cannot be routed to a
queue, then you will get a AMQP_BASIC_RETURN_METHOD method, followed by the
message (1 header frame + 1 or more body frames), followed by a
AMQP_BASIC_ACK_METHOD.
You should read these frames by calling amqp_simple_wait_frame().
-Alan
On Mon, Jul 8, 2013 at 6:51 PM, 3k4b251 <314992959 at qq.com> wrote:
> I use amqp_confirm_select() to support confirm send message. But I
> need to get the return by amqp_simple_wait_frame() ?
>
>
>
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-confirmation-tp27910.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130708/0d0283be/attachment.htm>
More information about the rabbitmq-discuss
mailing list