Actually, ecore_con_url_new("http://xxxx") should be used fore one
url. Also it returns one handler. for this URL.
But, if you need not this handler, you can discard handler after
ecore_con_url_get() is called.
I have fixed attached examples and it works well. :D
I think that you did not use ecore_con_url_fd_set() ) and If you want
to download files, you'd better to use ecore_file_download().
2012/2/18 Michael Blumenkrantz <[email protected]>:
> Hi,
>
> Attached is a very tiny demo which showcases a pretty huge (imo) bug in
> ecore-con-url: multiple simultaneous fetches are broken. When more than one
> curl object is added, only the last one will actually be fetched.
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
--
BRs,
Kim.
#include <Ecore.h>
#include <Ecore_Con.h>
int
main(void)
{
Ecore_Con_Url *url;
eina_init();
ecore_init();
ecore_con_init();
ecore_con_url_init();
eina_log_domain_level_set("ecore_con", EINA_LOG_LEVEL_DBG);
FILE *file = fopen("./abc.jpg", "wb");
FILE *file2 = fopen("./abc2.jpg", "wb");
url = ecore_con_url_new("http://www.dreamincode.net/forums/uploads/monthly_05_2010/post-380028-12747928967239.jpg.pagespeed.ce.yRppR_j7ae.jpg");
ecore_con_url_fd_set(url, fileno(file));
ecore_con_url_get(url);
url = ecore_con_url_new("http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg");
ecore_con_url_fd_set(url, fileno(file2));
ecore_con_url_get(url);
ecore_main_loop_begin();
return 0;
}
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel