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).
more explained: the a_Cookies_get function in dillo send a get_cookies command to cookies dpi, then wait a command from the cookies dpi with the answer and the function return the cookies.
Yes, I understand. If you're curious just take a look at the chat command in bookmarks. There're three questions and answers for adding a bookmark! :-)
I have try to do the same that bookmarks dpi but the function used in it is void. I have try to understand ccc but i get it only superficialy.
The CCC is hard to understand from the code (don't waste your time). I'll try to take a look into it today and send you some code that does the trick, so you can hook your work to it. -- Cheers Jorge.-