<div dir="ltr">It depends on what you mean by &quot;broker failure&quot;.�<div><br></div><div>If you mean the broker hardware dies, the broker crashes, or (more likely) something interrupts the network: you&#39;ll get an network error on the client side. �In rabbitmq-c this manifests itself in different ways depending on the function being called: for functions returning an int, a non-zero value is returned, for functions returning an amqp_rpc_reply_t, type will be set to AMQP_RESPONSE_LIBRARY_EXCEPTION and library_error will be set to something non-zero, and for things returning a amqp_*_t object if a NULL value is returned, calling amqp_get_last_rpc_reply() will get an amqp_rpc_reply_t which the above rule should be followed.</div>
<div><br></div><div>HTH</div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 4, 2013 at 6:13 AM, Jain, Punit <span dir="ltr">&lt;<a href="mailto:Punit.Jain@emc.com" target="_blank">Punit.Jain@emc.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal">I am using rabbitmq-c amqp client (0.2.0) to publish messages to RabbitMQ broker. I want to be notified in case of broker failure. Is there a way to detect this?<u></u><u></u></p>
<p class="MsoNormal">Any method or exception, which may notify us about this error while establishing a connection or publishing message?<u></u><u></u></p><p class="MsoNormal"><u></u>�<u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Punit<u></u><u></u></p></div></div></blockquote></div><br></div>