Re: [E-Devel] Question about using system() inside a module

2005-07-22 Thread Simon Poole

Matthew Mullins wrote:


ecore_file_download


dan


If you want to handle the downloaded data yourself rather than save it 
to a file, you may find ecore_con_url is more useful.


Ultimately, ecore_file_download will be fixed to use ecore_con_url.

--
Simon Poole
www.appliancestudio.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


Re: [E-Devel] Question about using system() inside a module

2005-07-22 Thread Matthew Mullins
That will do it, thank you.

--- dan sinclair <[EMAIL PROTECTED]> wrote:

> On Thu, 2005-07-21 at 17:30 -0700, Matthew Mullins
> wrote:
> > 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.
> > 
> 
> ecore_file_download
> 
> 
> dan
> 
> 
> 
> 
>
---
> 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
> 


__
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


Re: [E-Devel] Question about using system() inside a module

2005-07-21 Thread dan sinclair
On Thu, 2005-07-21 at 17:30 -0700, Matthew Mullins wrote:
> 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.
> 

ecore_file_download


dan




---
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


[E-Devel] Question about using system() inside a module

2005-07-21 Thread Matthew Mullins
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