Sure, in general, one can choose between using threads and syncronous (blocking) functions, and using an eventloop and asyncronous functions with callbacks. Many pike modules support both modes of operation.
/ Niels Möller (igelkottsräddare)
Previous text:
2003-10-09 09:24: Subject: Re: bugs and pop3
Sometimes it is useful. Some examples:
I would use threads for these examples... But ok, i agree it could be useful in certain cases. I will see how to do it properly.
In pike, do you rather use callback methods, or object inheritance (like interfaces in java) ? rather than having, say, X callback methods, only one callback object implementing these X methods...
Vincent.
/ Brevbäraren