diff options
author | joerg <joerg@pkgsrc.org> | 2010-04-22 14:11:16 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-04-22 14:11:16 +0000 |
commit | 93ddfb60eb28ece8326d560da237bb3f1ee00de9 (patch) | |
tree | de6baed0d2e1add70731ca657da18e08b962a92b /net/libfetch | |
parent | 49320cffd09fb518bd9af6a3eef882c45ff19701 (diff) | |
download | pkgsrc-93ddfb60eb28ece8326d560da237bb3f1ee00de9.tar.gz |
Regen.
Diffstat (limited to 'net/libfetch')
-rw-r--r-- | net/libfetch/files/fetch.cat3 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/net/libfetch/files/fetch.cat3 b/net/libfetch/files/fetch.cat3 index 5ee7e388c0f..f112d6a4591 100644 --- a/net/libfetch/files/fetch.cat3 +++ b/net/libfetch/files/fetch.cat3 @@ -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 |