| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: mmap & file uploads
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 31 May 2001 09:55:58 +0200 (MET DST)
On Wed, 30 May 2001, Sterling Hughes wrote:
> > I can see that there's gonna be an extra copy operation that could be avoided
[re-iterating the subject a little]
In cases where the application will still have the contents of the file even
We could still offer the current read callback for old times sake and for all
It could possibly look like this:
size_t read_file(void *clientp, size_t size, unsigned char **bufptr);
An application would then:
1 - use the clientp for whatever purpose it feels like
2 - set the *bufptr to point to the start of the buffer piece to upload next
3 - return 'size' or less bytes (the reason for this maximum amount is
Thoughts?
--
Daniel Stenberg -- curl dude -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-05-31
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info