roxen.lists.pike.general

Subject Author Date
Re: Blocking vs callback mode (Was: pike@roxen.com) Marc Dirix (Electronics Design <marc[at]electronics-design[dot]nl> 21-01-2009
On Wed, 2009-01-21 at 17:11 +0100, Martin Stjernholm wrote:
> Marc Dirix <<marc[at]electronics-design.nl>> wrote:
> 
> > For some reason the call to fd->set_blocking_keep_callbacks() does
> > not work. As data arives on the socket the callback is still called.
> 
> Which shows that it works, actually. ;) You confuse blocking mode with
> callback mode. The two are in fact unrelated:

Ok. That clears the mist. Does this mean my "working" example is good to
use? i.e. use set_blocking() to get rid of both callbacks before using
gets() and use set_nonblocking(callbacks) after I'm done?

Marc