Hello, I'm trying to come up with a better way to download (weather html in my case) than using wget through a system() function. Whenever system() is used, it hangs E completely until the function returns. For fast connections, or even if the network is completely down, you don't notice any pause. But if it times out trying to resolve the host name, or is on a really slow connection, it's not usable.
So I'm looking for some better options. What I probably should've done in the first place, was run the system() call as a background process, and put that on an independent ecore timer from the parsing code. The only other option I could think of was running the download from a background script, kicked off by the module when it loads. So before I start rearranging stuff, am I better off just taking the wget out of the module completely, and running the download from a script? If I move it to a script, I could probably take the parsing code out of e_mod_main.c and just stick it inside the script too. Seeing how a rogue module can bring E to a halt, I'd like to do this whichever is the preferred way. Thanks for all the feedback on the module. This is my first stab at anything like this, and I had no idea how disgusting parsing an html page in my ghetto C could be :) Thanks, Matt __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel