[rabbitmq-discuss] consume-reply-listener in c

Josef Hák pepa.hak at gmail.com
Mon May 26 16:24:51 BST 2014


Hello,
 I would like to make simple consume-reply-listener (.c) and client (.py). 
But I can not find any similar example on web. 

Firstly, I run listener: 
>> ./amqp_rpc_listen localhost 5672 amq.direct test
Secondly, I run client (for one request):
>> python rcp_client.py

Listener shows this output and thats ok:
>> Delivery 1, exchange amq.direct routingkey test
>> Content-type: 
>> Msg len: 16
>> Msg: asdf asdf a sd f
>> Reply to: amq.gen-UTSmWMXQt8gmLZdNaqZDqg
>> sent

Client shows this, but no response is received:
>> [x] Requesting fib(30)
>>amq.gen-UTSmWMXQt8gmLZdNaqZDqg

Please help me. Thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140526/47f699e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amqp_rpc_listen.c
Type: text/x-csrc
Size: 5695 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140526/47f699e1/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rcp_client.py
Type: text/x-python
Size: 1344 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140526/47f699e1/attachment.py>


More information about the rabbitmq-discuss mailing list