[rabbitmq-discuss] amqp_channel_open retrun value

Alan Antonuk alan.antonuk at gmail.com
Mon Dec 23 04:18:01 GMT 2013


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.

-Alan


On Sun, Dec 22, 2013 at 4:14 PM, Sid Young <sid.young at gmail.com> wrote:

> 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
>>
>>
>
>
>
>
> _______________________________________________
> 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/20131222/d1bd372b/attachment.html>


More information about the rabbitmq-discuss mailing list