On Sun, Apr 24, 2005 at 10:18:17AM +0200, Jorge Arellano Cid wrote:
Hi Diego,
On Sat, Apr 23, 2005 at 02:34:07PM +0200, Diego Sáenz wrote:
Hmm, what's the status of the cookies dpi?
It is almost done, but i need an answer to a big doubt before it.
how can a function wait(with a timeout if posible) until the cookies dpi send the answer to dillo after dillo have send to dpi cookies a get_cookies command?
Just let it block. Of course a non-blocking timeout or callback approach can be used (as with DNS or HTTP), but in this case the wait time is so short that it is not worth (it will be faster than bookmarks).
Unfortunately, after a long look into the code, I found out that there's no easy way to make it block (the natural way). Making it non-blocking is possible but non-trivial. I'll give it another try tomorrow... -- Cheers Jorge.-