On Fri, Dec 13, 2013 at 12:54 PM, Fraser Adams <
[email protected]> wrote:

> Hey Rafael,
> many thanks again for your relies, I'll take a look at the python code.
>
> For info in the branch that I'm doing my JavaScript stuff in I "pimped"
> messenger.h and messenger.c slightly adding
>
> PN_EXTERN int pn_messenger_wait(pn_messenger_t *messenger, int timeout);
>
> to messenger.h and
>
> int pn_messenger_wait(pn_messenger_t *messenger, int timeout)
> {
>     return pn_driver_wait(messenger->driver, timeout);
> }
>
> to messenger.c
>
> so my notifier now looks like:
>
>   while (1) {
>     pn_messenger_wait(messenger, -1); // Block indefinitely until there
> has been socket activity.
>     main_loop(NULL);
>   }
>
> And that works perfectly - yay :-)
>
> Would you have any issues with that going forward as an interim step until
> you're able to move forward with the fully decoupled driver?
>

Not at all. Please feel free.

--Rafael

Reply via email to