This commit is contained in:
joerg 2010-04-22 14:11:16 +00:00
parent 49320cffd0
commit 93ddfb60eb

View file

@ -8,7 +8,8 @@ NNAAMMEE
ffeettcchhPPuuttHHTTTTPP, ffeettcchhSSttaattHHTTTTPP, ffeettcchhLLiissttHHTTTTPP, ffeettcchhXXGGeettFFTTPP, ffeettcchhGGeettFFTTPP,
ffeettcchhPPuuttFFTTPP, ffeettcchhSSttaattFFTTPP, ffeettcchhLLiissttFFTTPP ffeettcchhIInniittUURRLLLLiisstt,
ffeettcchhFFrreeeeUURRLLLLiisstt, ffeettcchhUUnnqquuootteePPaatthh, ffeettcchhUUnnqquuootteeFFiilleennaammee,
ffeettcchhSSttrriinnggiiffyyUURRLL, ffeettcchh -- file transfer functions
ffeettcchhSSttrriinnggiiffyyUURRLL, ffeettcchhCCoonnnneeccttiioonnCCaacchheeIInniitt, ffeettcchhCCoonnnneeccttiioonnCCaacchheeCClloossee,
ffeettcchh -- file transfer functions
LLIIBBRRAARRYY
File Transfer Library for URLs (libfetch, -lfetch)
@ -123,6 +124,12 @@ SSYYNNOOPPSSIISS
_c_h_a_r _*
ffeettcchhSSttrriinnggiiffyyUURRLL(_c_o_n_s_t _s_t_r_u_c_t _u_r_l _*_u);
_v_o_i_d
ffeettcchhCCoonnnneeccttiioonnCCaacchheeIInniitt(_i_n_t _g_l_o_b_a_l, _i_n_t _p_e_r___h_o_s_t);
_v_o_i_d
ffeettcchhCCoonnnneeccttiioonnCCaacchheeCClloossee(_v_o_i_d);
DDEESSCCRRIIPPTTIIOONN
These functions implement a high-level library for retrieving and upload-
ing files using Uniform Resource Locators (URLs).
@ -207,7 +214,7 @@ DDEESSCCRRIIPPTTIIOONN
};
The list should be initialized by calling ffeettcchhIInniittUURRLLLLiisstt() and the
entries be freed by calling ffeettcchhFFrreeeeUURRLLLLiisstt(). The functio
entries be freed by calling ffeettcchhFFrreeeeUURRLLLLiisstt(). The function
ffeettcchhAAppppeennddUURRLLLLiisstt() can be used to append one URL lists to another. If
the `c' (cache result) flag is specified, the library is allowed to
internally cache the result.
@ -220,6 +227,13 @@ DDEESSCCRRIIPPTTIIOONN
and ffeettcchhUUnnqquuootteeFFiilleennaammee() return a string that should be deallocated
with ffrreeee() after use.
ffeettcchhCCoonnnneeccttiioonnCCaacchheeIInniitt() enables the connection cache. The first argu-
ment specifies the global limit on cached connections. The second argu-
ment specifies the host limit. Entries are considered to specify the
same host, if the host name from the URL is identical, indepent of the
address or address family. ffeettcchhCCoonnnneeccttiioonnCCaacchheeCClloossee() flushed the con-
nection cache and closes all cached connections.
ffeettcchhXXGGeett(), ffeettcchhGGeett(), ffeettcchhPPuutt(), and ffeettcchhSSttaatt() are similar to
ffeettcchhXXGGeettUURRLL(), ffeettcchhGGeettUURRLL(), ffeettcchhPPuuttUURRLL(), and ffeettcchhSSttaattUURRLL(), except
that they expect a pre-parsed URL in the form of a pointer to a _s_t_r_u_c_t
@ -509,4 +523,4 @@ BBUUGGSS
Some parts of the code are not fully reentrant.
NetBSD 5.0 February 4, 2009 NetBSD 5.0
NetBSD 5.0 January 22, 2010 NetBSD 5.0