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?