[rabbitmq-discuss] amqp_channel_open retrun value

Sid Young sid.young at gmail.com
Mon Dec 23 00:14:20 GMT 2013


Thanks Alan,

So do I need to call:

   AMQP_PUBLIC_FUNCTION amqp_rpc_reply_t AMQP_CALL
amqp_get_rpc_reply(amqp_connection_state_t state);

after the call to get the reply status?

Sid



On Sun, Dec 22, 2013 at 3:20 PM, Alan Antonuk <alan.antonuk at gmail.com>wrote:

> 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.
>
> Read the documentation here:
> https://github.com/alanxz/rabbitmq-c/blob/master/librabbitmq/amqp.h#L1635for further details
>
> -Alan
>
>
> On Sat, Dec 21, 2013 at 7:17 PM, Sid Young <sid.young at gmail.com> wrote:
>
>> Hi,
>>
>> 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?
>>
>> 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.
>>
>> Is it some kind of RPC call made later?
>>
>> Thanks
>>
>> Sid
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
> _______________________________________________
> 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/20131223/eb536bc5/attachment.html>


More information about the rabbitmq-discuss mailing list