Home
last modified time | relevance | path

Searched refs:share (Results 1 – 25 of 61) sorted by relevance

123

/curl/lib/
H A Dshare.c43 if(share) { in curl_share_init()
49 return share; in curl_share_init()
66 if(share->dirty) in curl_share_setopt()
110 share->sslsession = calloc(share->max_ssl_sessions, in curl_share_setopt()
252 free(share); in curl_share_cleanup()
262 struct Curl_share *share = data->share; in Curl_share_lock() local
264 if(!share) in Curl_share_lock()
269 share->lockfunc(data, type, accesstype, share->clientdata); in Curl_share_lock()
279 struct Curl_share *share = data->share; in Curl_share_unlock() local
281 if(!share) in Curl_share_unlock()
[all …]
H A Dconncache.h58 if((x)->share) { \
68 if((x)->share) { \
75 #define CONNCACHE_LOCK(x) if((x)->share) \
77 #define CONNCACHE_UNLOCK(x) if((x)->share) \
H A Dhostasyn.c77 if(data->share) in Curl_addrinfo_callback()
83 if(data->share) in Curl_addrinfo_callback()
H A Dhostip.c244 if(data->share) in Curl_hostcache_prune()
262 if(data->share) in Curl_hostcache_prune()
361 if(data->share) in Curl_fetch_addr()
369 if(data->share) in Curl_fetch_addr()
704 if(data->share) in Curl_resolv()
715 if(data->share) in Curl_resolv()
827 if(data->share) in Curl_resolv()
833 if(data->share) in Curl_resolv()
1150 if(data->share) in Curl_loadhostpairs()
1156 if(data->share) in Curl_loadhostpairs()
[all …]
/curl/packages/vms/
H A Dpcsi_gnv_curl_file_list.txt49 [gnv.usr]share.dir
50 [gnv.usr.share]
51 [gnv.usr.share]man.dir
52 [gnv.usr.share.man]
53 [gnv.usr.share.man]man1.dir
54 [gnv.usr.share.man.man1]
55 [gnv.usr.share.man]man3.dir
56 [gnv.usr.share.man.man3]
71 [gnv.usr.share.man.man1]curl.1
123 [gnv.usr.share.man.man3]libcurl-share.3
[all …]
H A Dgnv_link_curl.com421 gnv$libcurl/share
451 gnv$libcurl/share
478 gnv$libcurl/share
491 gnv$libcurl/share
504 gnv$libcurl/share
517 gnv$libcurl/share
530 gnv$libcurl/share
543 gnv$libcurl/share
556 gnv$libcurl/share
569 gnv$libcurl/share
[all …]
H A Dstage_curl_install.com19 $! [usr.share.man.man1]curl-config.1
20 $! [usr.share.man.man1]curl.1
21 $! [usr.share.man.man3]curl*.3
22 $! [usr.share.man.man3]libcurl*.3
146 $ copy [--.docs]curl-config.1 'new_gnu'[usr.share.man.man1]curl-config.1
147 $ copy [--.docs]curl.1 'new_gnu'[usr.share.man.man1]curl.1
150 'new_gnu'[usr.share.man.man3]*.3
/curl/tests/libtest/
H A Dlib586.c31 CURLSH *share; member
139 CURLSH *share; in test() local
154 share = curl_share_init(); in test()
155 if(!share) { in test()
181 curl_share_cleanup(share); in test()
192 tdata.share = share; in test()
205 curl_share_cleanup(share); in test()
213 test_setopt(curl, CURLOPT_SHARE, share); in test()
220 scode = curl_share_cleanup(share); in test()
223 share = NULL; in test()
[all …]
H A Dlib1554.c49 CURLSH *share = NULL; in test() local
54 share = curl_share_init(); in test()
55 if(!share) { in test()
60 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); in test()
61 curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock); in test()
62 curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock); in test()
73 curl_easy_setopt(curl, CURLOPT_SHARE, share); in test()
91 curl_share_cleanup(share); in test()
H A Dlib506.c33 CURLSH *share; member
183 CURLSH *share; in test() local
201 share = curl_share_init(); in test()
202 if(!share) { in test()
231 curl_share_cleanup(share); in test()
240 curl_share_cleanup(share); in test()
271 tdata.share = share; in test()
286 curl_share_cleanup(share); in test()
314 curl_share_cleanup(share); in test()
354 scode = curl_share_cleanup(share); in test()
[all …]
H A Dlib3103.c31 CURLSH *share; in test() local
36 share = curl_share_init(); in test()
37 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE); in test()
40 test_setopt(curl, CURLOPT_SHARE, share); in test()
62 curl_share_cleanup(share); in test()
/curl/docs/examples/
H A Dshared-connection-cache.c51 CURLSH *share; in main() local
54 share = curl_share_init(); in main()
55 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); in main()
57 curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock); in main()
58 curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock); in main()
71 curl_easy_setopt(curl, CURLOPT_SHARE, share); in main()
85 curl_share_cleanup(share); in main()
/curl/docs/libcurl/
H A Dlibcurl-share.md4 Title: libcurl-share
20 libcurl-share - how to use the share interface
24 This is an overview on how to use the libcurl share interface in your C
28 All functions in the share interface are prefixed with curl_share.
32 The share interface was added to enable sharing of data between curl handles.
36 You can have multiple easy handles share data between them. Have them update
46 You tell the shared object what data you want it to share by using
49 Since you can use this share from multiple threads, and libcurl has no
54 Then, you make an easy handle to use this share, you set the
56 share handle. You can make any number of easy handles share the same share
[all …]
H A Dcurl_share_init.md29 to all the other share-functions, sometimes referred to as a share handle in
31 call to curl_share_cleanup(3) when all operations using the share are
34 This *share handle* is what you pass to curl using the
36 specific curl handle use the data in this share.
44 CURLSH *share = curl_share_init();
45 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
58 and therefore the share object was not created.
H A Dcurl_share_cleanup.md28 This function deletes a shared object. The share handle cannot be used anymore
40 CURLSH *share = curl_share_init();
41 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
42 /* use the share, then ... */
43 curl_share_cleanup(share);
55 page for the full list with descriptions. If an error occurs, then the share
H A Dcurl_share_setopt.md23 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHoption option, parameter);
28 Set the *option* to *parameter* for the given *share*.
58 CURLSH *share = curl_share_init();
59 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
H A Dcurl_share_strerror.md39 CURLSH *share = curl_share_init();
40 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
/curl/docs/libcurl/opts/
H A DCURLOPT_SHARE.md16 CURLOPT_SHARE - share handle to use
23 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SHARE, CURLSH *share);
28 Pass a *share* handle as a parameter. The share handle must have been
31 the data to itself. This enables several curl handles to share data. If the
33 the locking methods in the share handle. See curl_share_setopt(3) for
36 If you add a share that is set to share cookies, your easy handle uses that
38 that was using cookies (or change to another object that does not share
41 Data that the share object is not set to share is dealt with the usual way, as
42 if no share was used.
44 Set this option to NULL again to stop using that share object.
H A DCURLSHOPT_SHARE.md18 CURLSHOPT_SHARE - add data to share
25 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_SHARE, long type);
31 and kept in the share object that was created with curl_share_init(3).
34 the share object share multiple types of data. Unset a type again by setting
47 the same multi handle share DNS cache by default without using this option.
59 Put the connection cache in the share object and make all easy handles using
60 this share object share the connection cache.
77 The Public Suffix List stored in the share object is made available to all
90 It is not supported to share the HSTS between multiple concurrent threads.
100 CURLSH *share = curl_share_init();
[all …]
H A DCURLSHOPT_UNSHARE.md18 CURLSHOPT_UNSHARE - remove data to share
25 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNSHARE, long type);
31 shared and kept in the share object that was created with
36 share again with CURLSHOPT_SHARE(3).
67 CURLSH *share = curl_share_init();
68 sh = curl_share_setopt(share, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_COOKIE);
H A DCURLSHOPT_UNLOCKFUNC.md27 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNLOCKFUNC, unlockcb);
32 Set a mutex unlock callback for the share object. There is a corresponding
38 *handle* is the currently active easy handle in use when the share object
55 CURLSH *share = curl_share_init();
56 sh = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, mutex_unlock);
H A DCURLSHOPT_LOCKFUNC.md28 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_LOCKFUNC, lockcb);
33 Set a mutex lock callback for the share object, to allow it to get used by
40 *handle* is the currently active easy handle in use when the share object
60 CURLSH *share = curl_share_init();
61 sh = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, mutex_lock);
H A DCURLSHOPT_USERDATA.md25 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_USERDATA, void *clientp);
45 CURLSH *share = curl_share_init();
46 sh = curl_share_setopt(share, CURLSHOPT_USERDATA, &private_stuff);
/curl/tests/data/
H A Dtest50692 lock: share [Pigs in space]: 0
93 unlock: share [Pigs in space]: 1
112 lock: share [Pigs in space]: 14
113 unlock: share [Pigs in space]: 15
116 lock: share [Pigs in space]: 16
117 unlock: share [Pigs in space]: 17
141 lock: share [Pigs in space]: 38
142 unlock: share [Pigs in space]: 39
145 lock: share [Pigs in space]: 40
146 unlock: share [Pigs in space]: 41
[all …]
/curl/tests/http/clients/
H A Dtls-session-reuse.c144 static void add_transfer(CURLM *multi, CURLSH *share, in add_transfer() argument
159 curl_easy_setopt(easy, CURLOPT_SHARE, share); in add_transfer()
187 CURLSH *share; in main() local
236 share = curl_share_init(); in main()
237 if(!share) { in main()
241 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION); in main()
244 add_transfer(multi, share, &resolve, url, http_version); in main()
270 add_transfer(multi, share, &resolve, url, http_version); in main()

Completed in 81 milliseconds

123