Re: Sending server

2015-09-09 Thread Gordon Sim

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

2015-09-08 Thread Gordon Sim

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?





Sending server

2015-09-08 Thread Tomáš Šoltys
Hi,

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?

Thanks,
Tomas