[rabbitmq-discuss] Librabbitmq-c API

Alex P oleksandr.petrov at gmail.com
Fri Sep 2 11:35:08 BST 2011


Hi,

We've started using librabbitmq-c on ARM device with 200MHZ and 64mb
of RAM, works very well, it's so nice to know that it's available for
embedding & stable enough to use in industrial projects. Actually,
librabbitmq together with v8 opens up a whole new world of
opportunities and eases embedded development a lot, thanks for the
hard work done on the lib!

So far we went with a toolset that's defined in ./examples and ./
tools, but, for instance in example for listenqueue framing is done
manually. Is there a high-level API for receiving a whole message in
case it's there and getting AMQP_BASIC_GET_EMPTY_METHOD or anything
else if body is empty / nothing received?

amqp_basic_get(conn, 1, queue, 1); seemed to be a good candidate for
that, but still in codegen.py it's marked as one of those methods that
should not be exposed as an API.

So, my question would be - what is the best way to receive messages?
Should we handle framing manually, as it's done in examples? If not,
what are the api methods that we should stick to?

Thanks


More information about the rabbitmq-discuss mailing list