/curl/lib/ |
H A D | share.c | 45 if(share) { in curl_share_init() 51 return share; in curl_share_init() 69 if(share->dirty) in curl_share_setopt() 113 share->sslsession = calloc(share->max_ssl_sessions, in curl_share_setopt() 261 free(share); in curl_share_cleanup() 271 struct Curl_share *share = data->share; in Curl_share_lock() local 273 if(!share) in Curl_share_lock() 278 share->lockfunc(data, type, accesstype, share->clientdata); in Curl_share_lock() 288 struct Curl_share *share = data->share; in Curl_share_unlock() local 290 if(!share) in Curl_share_unlock() [all …]
|
H A D | hostasyn.c | 77 if(data->share) in Curl_addrinfo_callback() 83 if(data->share) in Curl_addrinfo_callback()
|
/curl/packages/vms/ |
H A D | pcsi_gnv_curl_file_list.txt | 49 [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 D | gnv_link_curl.com | 422 gnv$libcurl/share 452 gnv$libcurl/share 479 gnv$libcurl/share 492 gnv$libcurl/share 505 gnv$libcurl/share 518 gnv$libcurl/share 531 gnv$libcurl/share 544 gnv$libcurl/share 557 gnv$libcurl/share 570 gnv$libcurl/share [all …]
|
H A D | stage_curl_install.com | 19 $! [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 D | lib586.c | 31 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 D | lib3207.c | 43 CURLSH *share; member 145 static void execute(CURLSH *share, struct Ctx *ctx) in execute() argument 176 static void execute(CURLSH *share, struct Ctx *ctx) in execute() argument 179 (void) share; in execute() 191 CURLSH* share; in test() local 196 share = curl_share_init(); in test() 197 if(!share) { in test() 203 ctx[i].share = share; in test() 210 execute(share, ctx); in test() 227 if(share) in test() [all …]
|
H A D | lib1554.c | 61 CURLSH *share = NULL; in test() local 66 share = curl_share_init(); in test() 67 if(!share) { in test() 72 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); in test() 73 curl_share_setopt(share, CURLSHOPT_LOCKFUNC, test_lock); in test() 74 curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, test_unlock); in test() 85 curl_easy_setopt(curl, CURLOPT_SHARE, share); in test() 103 curl_share_cleanup(share); in test()
|
H A D | lib506.c | 33 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 D | lib3103.c | 31 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 D | shared-connection-cache.c | 51 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 D | libcurl-share.md | 4 Title: libcurl-share 21 libcurl-share - how to use the share interface 25 This is an overview on how to use the libcurl share interface in your C 29 All functions in the share interface are prefixed with curl_share. 33 The share interface was added to enable sharing of data between curl handles. 37 You can have multiple easy handles share data between them. Have them update 47 You tell the shared object what data you want it to share by using 50 Since you can use this share from multiple threads, and libcurl has no 55 Then, you make an easy handle to use this share, you set the 57 share handle. You can make any number of easy handles share the same share [all …]
|
H A D | curl_share_init.md | 17 curl_share_init - create a share object 30 to all the other share-functions, sometimes referred to as a share handle in 32 call to curl_share_cleanup(3) when all operations using the share are 35 This *share handle* is what you pass to curl using the 37 specific curl handle use the data in this share. 47 CURLSH *share = curl_share_init(); 48 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); 59 and therefore the share object was not created.
|
H A D | curl_share_cleanup.md | 29 This function deletes a shared object. The share handle cannot be used anymore 46 CURLSH *share = curl_share_init(); 47 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); 48 /* use the share, then ... */ 49 curl_share_cleanup(share); 59 page for the full list with descriptions. If an error occurs, then the share
|
H A D | curl_share_setopt.md | 24 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHoption option, parameter); 29 Set the *option* to *parameter* for the given *share*. 61 CURLSH *share = curl_share_init(); 62 sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_SHARE.md | 17 CURLOPT_SHARE - share handle to use 24 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SHARE, CURLSH *share); 29 Pass a *share* handle as a parameter. The share handle must have been 32 the data to itself. This enables several curl handles to share data. If the 34 the locking methods in the share handle. See curl_share_setopt(3) for 37 If you add a share that is set to share cookies, your easy handle uses that 39 that was using cookies (or change to another object that does not share 42 Data that the share object is not set to share is dealt with the usual way, as 43 if no share was used. 45 Set this option to NULL again to stop using that share object.
|
H A D | CURLSHOPT_SHARE.md | 19 CURLSHOPT_SHARE - add data to share 26 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_SHARE, long type); 32 and kept in the share object that was created with curl_share_init(3). 35 the share object share multiple types of data. Unset a type again by setting 44 It is not supported to share cookies between multiple concurrent threads. 50 the same multi handle share DNS cache by default without using this option. 65 this share object share the connection cache. 82 The Public Suffix List stored in the share object is made available to all 95 It is not supported to share the HSTS between multiple concurrent threads. 107 CURLSH *share = curl_share_init(); [all …]
|
H A D | CURLSHOPT_UNSHARE.md | 19 CURLSHOPT_UNSHARE - remove data to share 26 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNSHARE, long type); 32 shared and kept in the share object that was created with 37 share again with CURLSHOPT_SHARE(3). 70 CURLSH *share = curl_share_init(); 71 sh = curl_share_setopt(share, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_COOKIE);
|
H A D | CURLSHOPT_UNLOCKFUNC.md | 28 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNLOCKFUNC, unlockcb); 33 Set a mutex unlock callback for the share object. There is a corresponding 39 *handle* is the currently active easy handle in use when the share object 58 CURLSH *share = curl_share_init(); 59 sh = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, mutex_unlock);
|
H A D | CURLSHOPT_LOCKFUNC.md | 29 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_LOCKFUNC, lockcb); 34 Set a mutex lock callback for the share object, to allow it to get used by 41 *handle* is the currently active easy handle in use when the share object 63 CURLSH *share = curl_share_init(); 64 sh = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, mutex_lock);
|
H A D | CURLSHOPT_USERDATA.md | 26 CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_USERDATA, void *clientp); 48 CURLSH *share = curl_share_init(); 49 sh = curl_share_setopt(share, CURLSHOPT_USERDATA, &private_stuff);
|
/curl/tests/data/ |
H A D | test506 | 92 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 D | hx-download.c | 232 CURLSH *share, int use_earlydata) in setup() argument 234 curl_easy_setopt(hnd, CURLOPT_SHARE, share); in setup() 295 CURLSH *share; in main() local 374 share = curl_share_init(); in main() 375 if(!share) { in main() 379 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE); in main() 380 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS); in main() 383 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_PSL); in main() 384 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_HSTS); in main() 488 setup(t->easy, url, t, http_version, host, share, in main() [all …]
|
H A D | tls-session-reuse.c | 141 static void add_transfer(CURLM *multi, CURLSH *share, in add_transfer() argument 156 curl_easy_setopt(easy, CURLOPT_SHARE, share); in add_transfer() 184 CURLSH *share; in main() local 233 share = curl_share_init(); in main() 234 if(!share) { in main() 238 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION); in main() 241 add_transfer(multi, share, &resolve, url, http_version); in main() 267 add_transfer(multi, share, &resolve, url, http_version); in main()
|
H A D | hx-upload.c | 256 CURLSH *share, int use_earlydata, int announce_length) in setup() argument 258 curl_easy_setopt(hnd, CURLOPT_SHARE, share); in setup() 332 CURLSH *share; in main() local 433 share = curl_share_init(); in main() 434 if(!share) { in main() 438 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE); in main() 439 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS); in main() 441 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT); in main() 442 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_PSL); in main() 443 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_HSTS); in main() [all …]
|