curl-library
RE: getting html to buffer?
Date: Tue, 2 Oct 2001 12:17:57 -0700
I can't think of a way offhand, due to how threading works in C. The
thread could do all of its own allocation, processing, and I/O without
passing the data back to the caller, but that doesn't scale very well.
With arrays though you'll have to play with mutex's or signals to detect
when a certain task has been completed. It probably depends on the
specific application.
C++ is a little cleaner conceptually, but you still end up with an array or
list of classes in the end.
Lucas.
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Monday, October 01, 2001 11:10 PM
To: Lucas Adamski
Cc: libcurl Mailing list
Subject: RE: getting html to buffer?
On Mon, 1 Oct 2001, Lucas Adamski wrote:
[got this privately, replying back on list]
> Yes, you'll basically need an array of buffers, and pass a pointer to a
> different buffer for each thread. Its a bit of a pain.
> Lucas.
How else would libcurl support it so that it would be easier?
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-10-02