2011/1/17 Alexandre Kalendarev <span dir="ltr"><<a href="mailto:akalend@mail.ru">akalend@mail.ru</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
the rabbitmq-c client d't have no-blocking i/o. <br></div></blockquote><div><br>A cheap hack would be to use select() (etc) to wait for some input to become available, and then call amqp_simple_wait_frame.<br><br>I've also experimented with using libevent with librabbitmq, though it's Not Going To Be Easy To Follow: see read_callback at <a href="https://github.com/tonyg/rais/blob/master/src/connection.c#L384-411">https://github.com/tonyg/rais/blob/master/src/connection.c#L384-411</a>, and check out librabbitmq's amqp_handle_input().<br>
<br>Tony<br><br></div></div>