You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Gordon Sim <gs...@redhat.com> on 2015/09/08 16:47:31 UTC
Re: Sending server
On 09/08/2015 02:24 PM, Tomáš Šoltys wrote:
> I would like to create a sender that sends messages on demand.
>
> What would be the best approach?
>
> Create a loop in PN_LINK_FLOW? Or is there a better way?
Is this example any use:
https://git1-us-west.apache.org/repos/asf?p=qpid-proton.git;a=blob;f=examples/cpp/direct_send.cpp;h=02bc3725db9809cac92ae04a91068932f636b59e;hb=HEAD
It allows receivers to connect and when they do it will send a certain
number of messages to them. Obviously the details of the logic could be
adapted, but it may be a useful place to start experimenting?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Sending server
Posted by Gordon Sim <gs...@redhat.com>.
On 09/09/2015 07:09 AM, Tomáš Šoltys wrote:
> Thanks a lot Gordon!
>
> And is there a suggested/proper way how to do it using reactor API?
That example does use the reactor.
If you mean an example that doesn't use any of the utilities and helper
classes on top of that, then you could look at the python example under
examples/python/reactor.send.py perhaps (as far as I know there is
nothing equivalent to that yet in c or c++).
Re: Sending server
Posted by Tomáš Šoltys <to...@gmail.com>.
Thanks a lot Gordon!
And is there a suggested/proper way how to do it using reactor API?
Thanks and regards,
Tomas
2015-09-08 16:47 GMT+02:00 Gordon Sim <gs...@redhat.com>:
> On 09/08/2015 02:24 PM, Tomáš Šoltys wrote:
>
>> I would like to create a sender that sends messages on demand.
>>
>> What would be the best approach?
>>
>> Create a loop in PN_LINK_FLOW? Or is there a better way?
>>
>
> Is this example any use:
> https://git1-us-west.apache.org/repos/asf?p=qpid-proton.git;a=blob;f=examples/cpp/direct_send.cpp;h=02bc3725db9809cac92ae04a91068932f636b59e;hb=HEAD
>
> It allows receivers to connect and when they do it will send a certain
> number of messages to them. Obviously the details of the logic could be
> adapted, but it may be a useful place to start experimenting?
>
>
>
--
Tomáš Šoltys
tomas.soltys@gmail.com
http://www.range-software.com
(+420) 776-843-663