<br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 3:22 PM, J. Liles <span dir="ltr"><<a href="mailto:malnourite@gmail.com">malnourite@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Wed, Apr 4, 2012 at 1:48 PM, Fons Adriaensen <span dir="ltr"><<a href="mailto:fons@linuxaudio.org" target="_blank">fons@linuxaudio.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Wed, Apr 04, 2012 at 09:19:57AM -0700, J. Liles wrote:<br>
<br>
> Are you seriously saying that the equivalent of doing:<br>
><br>
> if ( nsm_is_active )<br>
>       save_here( file );<br>
> else<br>
>       save_there( file );<br>
><br>
> Would require a complete rewrite and overhaul of your application? Say you<br>
> don't want to do it... That's fine. Say you don't like the NSM<br>
> design--that's fine too. But don't just make up wild hyperbole out of<br>
> laziness...<br>
<br>
</div>:-)<br>
<br>
A question: according to the docs, a client should consider itself<br>
'managed' after receiving the reply to the 'announce' message. But<br>
at that time it has no path to save anything 'New' or 'Load'ed.<br>
If I understand the docs correctly, the 'open' message specifying<br>
this path will follow immediately. But still this is a possible race<br>
condition. So shouldn't a client consider itself managed only after<br>
having received the first 'open' message ?<br></blockquote></div><div><br>Yes. Well, there's a bit of a fine distinction between being managed and being part of the session. The application could conceivably receive a 'quit' message before the 'open' message, but that would never actually happen in the current implementation and doesn't make a lot of sense anyway. I think you're probably right in that for all practical purposes 'open' is the time to consider the application managed.<br>

<br></div></div></blockquote><div><br>Also, to clairify, by 'quit' I mean SIGTERM and furthermore, there's no reason that the announce reply and the first open message can't be in an OSC 'bundle' to guarantee they are processed at the same time (although the current implementation doesn't use bundles).<br>
 <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div><br>