<div dir="ltr">amqp_channel_open() is considered successful if it returns a non-NULL value. If and only if amqp_channel_open() returns NULL the call has failed, and you should call amqp_get_rpc_reply() to get further information about the failure.<div>
<br></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 4:14 PM, Sid Young <span dir="ltr"><<a href="mailto:sid.young@gmail.com" target="_blank">sid.young@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre><div><span>Thanks Alan,<br><br>So do I need to call:<br><br> AMQP_PUBLIC_FUNCTION amqp_rpc_reply_t AMQP_CALL</span> <span>amqp_get_rpc_reply</span><span>(</span><span>amqp_connection_state_t</span> <span>state</span><span>);<br>
<br>after the call to get the reply status?<span class="HOEnZb"><font color="#888888"><br><br></font></span></span></div><span class="HOEnZb"><font color="#888888"><div><span>Sid<br></span></div></font></span></pre><div>
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 3:20 PM, Alan Antonuk <span dir="ltr"><<a href="mailto:alan.antonuk@gmail.com" target="_blank">alan.antonuk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For RPC functions that are defined in amqp_framing.h; if they return a non-NULL value, the actual RPC call was successful. If they return a NULL value, you should call the amqp_last_rpc_reply() to get information on why the call failed.<div>
<br></div><div>Read the documentation here: <a href="https://github.com/alanxz/rabbitmq-c/blob/master/librabbitmq/amqp.h#L1635" target="_blank">https://github.com/alanxz/rabbitmq-c/blob/master/librabbitmq/amqp.h#L1635</a> for further details</div>
<div><br></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sat, Dec 21, 2013 at 7:17 PM, Sid Young <span dir="ltr"><<a href="mailto:sid.young@gmail.com" target="_blank">sid.young@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<br><br>I am trying to work out how to get the return value from amqp_channel_open() in rabbitmq-c but it does not appear to be documented anywhere?<br>
<br>What is the easiest way to get the return value from the call in "C". I'm using the "C" library and the code works fine, but I want to log the status of the call. <br><br>Is it some kind of RPC call made later?<br>
<br>Thanks<span><font color="#888888"><br><br>Sid<br></font></span></div><br></div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br><br clear="all"><br><br></div></div></div></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>