Inlined:<br><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 12:31 PM, Eric J. Holtman <span dir="ltr"><<a href="mailto:eric@holtmans.com">eric@holtmans.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 3/8/2012 11:24 AM, Alan Antonuk wrote:<br>
> tedious at best). That said if you're willing as a programmer to deal with<br>
> the library at a low level (mostly keeping track of frames that<br>
> are received from different amqp channels) there is nothing in the<br>
> rabbitmq-c library that prevents multiple consumers to be used.<br>
><br>
<br>
</div>Is SimpleAmqpClient doing that (keeping track of the frames)?<br>
<br></blockquote><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Or maybe I'm not understanding the different levels... you're<br>
saying I can have two consumers on a channel, and that works,<br>
but what you cannot have is two channels using the same TCP<br>
connection?<br>
<div class="HOEnZb"><div class="h5"></div></div></blockquote><div><br></div><div>Each SimpleAmqpClient AmqpClient::Channel object has exactly 1 TCP connection. </div><div><br></div><div>Depending on what you're doing with the AmqpClient::Channel object it will have 1 or more AMQP Channels open (this is not visible to you as a user of the library).</div>
<div><br></div><div>Each AmqpClient::Channel object may have 1 or more consumers.</div><div><br></div><div>The limitation you're probably thinking about is that neither rabbitmq-c nor SimpleAmqpClient is thread-safe. If you want to use a AmqpClient::Channel from different threads you need to synchronize its usage, or just use a different AmqpClient::Channel instance from each thread.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br><div>-Alan</div>