On Tue, 2015-03-03 at 14:52 -0500, Justin Ross wrote: > In PROTON-818, Cliff has introduced some examples using the C reactor > interfaces. For simple programs, they are pretty long. > > - reactor-recv.c - http://goo.gl/4QkqsE - 447 lines > - reactor-send.c - http://goo.gl/Zcg9Sy - 389 lines > > Some questions: > > - The examples carry connections in a context in order to do clean > shutdown. Is that something the reactor should be capable of doing? > > - There's also a little extra logic in these to do clean object deletion. > Is there a better way to handle the references to avoid this? > > - There's some state management for timeouts. Could that go into a > standard handler? It seems like it will be a common case. > > - Can the endpoint setup in these examples go into a standard handler? > > - The message handling is verbose. It seems attractive to have something > akin to the message.send and .recv that we have in Python. > > Justin
FYI there are already send/receive examples in ~/proton/examples/engine/c/ - they're pre-reactor, using events directly. Probably we should merge their features with the reactor examples and have one set showing the recommended approach and acting as building blocks for tests. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
