On 02/07/2011 06:12 PM, Tony Garnock-Jones wrote:
The alternative is to avoid use of the *_simple_* methods, including
amqp_simple_wait_frame, and to read bytes yourself in whatever way you
see fit (e.g. using libevent or raw select plus nonblocking sockets) and
pass those bytes to amqp_handle_input. You'll need to do the connection
opening and tuning yourself, but once that's done you're golden.

Yes: https://github.com/tonyg/rais/blob/master/src/connection.c#L384-411
Thanks, Tony. This is super-helpful! I'll experiment with using the
technique you describe and see how it goes.

If my experiments are successful (or fail in interesting ways), I'll try
to write up a blog post with my findings. Certainly the RabbitMQ C
library does not currently suffer from an excess of documentation.

As far as I can tell, rais is (the beginning of) an AMQP broker
implementation in C? Is that correct?

cheers,
mlc


--
mike castleman
mailto:m at mlcastle.net
tel:+1-646-382-7220
http://mlcastle.net/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedFeb 5, '11 at 8:13p
activeFeb 8, '11 at 1:16a
posts5
users3
websiterabbitmq.com
irc#rabbitmq

People

Translate

site design / logo © 2022 Grokbase