hi list,

I'm looking at using RabbitMQ and the C library for a project.

In all three of the consumer examples provided with the C library
(amqp_consumer.c, amqp_listen.c, amqp_listenq.c), it seems like
consuming messages blocks on calling amqp_simple_wait_frame().

Is there any way we can select(2) on something or otherwise be notified
when a message is ready to be received?

As far as I can tell, just select()ing on the socket is not sufficient,
because if amqp_simple_wait_frame() reads a partial frame, it will still
block.

Are there examples anywhere of event-driven uses of the RabbitMQ C
library which send and receive on different channels on the same
connection based on some kind of external events?

Thanks a lot,
mlc


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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 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