[rabbitmq-discuss] rabbitmq-c non-block
alan.antonuk at gmail.com
Tue Jul 9 03:20:44 BST 2013
You might want to check out an API that I've added as of today:
You can find an example on how to use it here:
To specify a timeout for that function you'd create a struct timeval
struct timeval timeout;
timeout.tv_sec = 5; /* Wait up to 5.0006 seconds */
timeout.tv_usec = 6000;
/* Pass timeval into amqp_consume_message() like so.
amqp_consume_message(conn, &envelope, &timeout, 0);
On Mon, Jul 8, 2013 at 7:05 PM, 3k4b251 <314992959 at qq.com> wrote:
> can you give me some example?
> View this message in context:
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss