slack-get development diary #2
By Arnaud Dupuis on Tuesday 6 November 2007, 07:23 - slack-get development diary - Permalink
Hi,
First let me tell you some things about me : I've got a new job recently. I'm now working in a IT consulting company in their Open Source business unit. That's great !
I also marry my fiancée in June... So you can tell that I have less time to
code 
That was for the explanation why I haven't code a lot this week 
But the slack-get development is still moving quite nicely, even if I had loads of problems this week. I focused on turning all the network handling code in sg_daemon POE compliant. So I looked at a POE Component (PoCo) wich implements the HTTP protocol.. Great the is one who manage parallel downloads !! I tried it and it is just what I need. So I began to search the same things but for other protocols sg_daemon support... and here are the problems.
I found nothing for the FILE protocol and the PoCo for FTP is still young
and do not provide the same API than PoCo::Client::HTTP. So I ended to reverse
the changes I already made to slackget10::Network::Connection::HTTP and decided
to change the API to emulate the POE way of doing things. So the
slackget10::Network::Connection object must, now, be constructed with an
argument InlineState => {}which contains 3 events : progress,
download_finished, and download_error. You have to associates a handler to each
of this events.
Talking about this class, the internal architecture have changed and it is now way easier to add drivers for slackget10::Network::Connection. You just have to create a class wich implements some methods. It will be the feature highlights of the week.
I have not much to say considering that all my family stuff for my weddings and all the problems I met with the "POE-ification" of the network code slowed me down a lot.
Let's hope for next week 
Arnaud Dupuis