<div dir="ltr">On Wed, Jan 2, 2013 at 11:54 PM, Rusty Russell <span dir="ltr"><<a href="mailto:rusty@rustcorp.com.au" target="_blank">rusty@rustcorp.com.au</a>></span> wrote:<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        The idea was that every callback arranged a 'next' function:<br>
this one is a little special, meaning we close the connection<br>
immediately.<br></blockquote><div>Ah, right, so the next callback passed to conn_next would be called with the argument. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Normally, when they call conn_next(), we just assign to connection->next<br>
so we know what to call next time, and return (back to the main loop).<br>
<br>
If we're debugging, conn_next() should invoke the main loop itself,<br>
rather than returning.<br>
<br>
But this is an optional feature which can be implemented afterwards...<br>
<br></blockquote><div>I had guessed that already but thanks, anyway, the code is finished except that it works only with epoll, so I gotta fix select and i'll commit the results to my tree and notify you. </div><div>
<br></div></div>Cheers,<br><div dir="ltr">Allan</div>
</div>