W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1998

return file hadle to file in cache?

From: Matthew P. Bohnsack <bohnsack@eai.com>
Date: Thu, 11 Jun 1998 13:30:06 -0500
Message-Id: <199806111827.NAA29754@goliath.eai.com>
To: www-lib@w3.org
hello..

i'm trying to write some code that will return a file handle to a cached
file, but not having much luck

right now i'm doing something like...

HTProfile_newPreemptiveClient("MyClient", "0.001");
HTCacheInit(CacheLoc, CacheSize);
request = HTRequest_new();
filename=tmpnam(NULL);
ret=HTLoadToFile(url, request, filename);
// do something with filename
HTRequest_delete(request);

this ends up loading a file from either across the network or from cache
and placing it into
/var/tmp/something.  this works but its not really what i want.  i would
like to load a file across
the network and place it into cache if its not already in cache and then
get a filehandle to 
the cached file to pass back to somewhere.  is there some API functionality
to accomplish this?

thanks!


--
Matt Bohnsack                        Engineering Animation, Inc.
bohnsack@eai.com             http://www.eai.com
515.296.0964
Received on Thursday, 11 June 1998 14:25:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:27 GMT