libcurl-share(3) libcurl share interface libcurl-share(3)NAME
libcurl-share - how to use the share interface
DESCRIPTION
This is an overview on how to use the libcurl share interface in your C programs. There are specific man pages for each function mentioned
in here.
All functions in the share interface are prefixed with curl_share.
OBJECTIVES
The share interface was added to enable sharing of data between curl "handles".
ONE SET OF DATA - MANY TRANSFERS
You can have multiple easy handles share data between them. Have them update and use the same cookie database or DNS cache! This way, each
single transfer will take advantage from data updates made by the other transfer(s).
SHARE OBJECT
You create a shared object with curl_share_init(3). It returns a handle for a newly created one.
You tell the shared object what data you want it to share by using curl_share_setopt(3).
Since you can use this share from multiple threads, and libcurl has no internal thread synchronization, you must provide mutex callbacks if
you're using this multi-threaded. You set lock and unlock functions with curl_share_setopt(3) too.
Then, you make an easy handle to use this share, you set the CURLOPT_SHARE option with curl_easy_setopt(3), and pass in share handle. You
can make any number of easy handles share the same share handle.
To make an easy handle stop using that particular share, you set CURLOPT_SHARE to NULL for that easy handle. To make a handle stop sharing
a particular data, you can CURLSHOPT_UNSHARE it.
When you're done using the share, make sure that no easy handle is still using it, and call curl_share_cleanup(3) on the handle.
SEE ALSO curl_share_init(3), curl_share_setopt(3), curl_share_cleanup(3)libcurl 7.10.7 8 Aug 2003 libcurl-share(3)
Check Out this Related Man Page
libcurl-share(3) libcurl share interface libcurl-share(3)NAME
libcurl-share - how to use the share interface
DESCRIPTION
This is an overview on how to use the libcurl share interface in your C programs. There are specific man pages for each function mentioned
in here.
All functions in the share interface are prefixed with curl_share.
OBJECTIVES
The share interface was added to enable sharing of data between curl "handles".
ONE SET OF DATA - MANY TRANSFERS
You can have multiple easy handles share data between them. Have them update and use the same cookie database or DNS cache! This way, each
single transfer will take advantage from data updates made by the other transfer(s).
SHARE OBJECT
You create a shared object with curl_share_init(3). It returns a handle for a newly created one.
You tell the shared object what data you want it to share by using curl_share_setopt(3). Currently you can only share DNS and/or COOKIE
data.
Since you can use this share from multiple threads, and libcurl has no internal thread synchronization, you must provide mutex callbacks if
you're using this multi-threaded. You set lock and unlock functions with curl_share_setopt(3) too.
Then, you make an easy handle to use this share, you set the CURLOPT_SHARE option with curl_easy_setopt(3), and pass in share handle. You
can make any number of easy handles share the same share handle.
To make an easy handle stop using that particular share, you set CURLOPT_SHARE to NULL for that easy handle. To make a handle stop sharing
a particular data, you can CURLSHOPT_UNSHARE it.
When you're done using the share, make sure that no easy handle is still using it, and call curl_share_cleanup(3) on the handle.
SEE ALSO curl_share_init(3), curl_share_setopt(3), curl_share_cleanup(3)libcurl 7.10.7 8 Aug 2003 libcurl-share(3)
I wanted to share internet with my Server running Win 2000 and client on Solaris 8.
I networked them with a hub and 2 NICs on Server.
Is there any software to share the internet? Need help!!!!!!!!!!
Thanks...
Praveen (5 Replies)
Im trying to simply share a directory on one unix server and mount that share on a different unix server.
There is no "share" command like on sun. What is the command to create a share on HP-UX? (2 Replies)
Hi ,,, i just come across this forum and i make it a must to be pay a visit here everyday and through it am learning a lots of things which am sure i will be able to share later...
So i have a prob with my pc when i try to change my Ip address in the dos command using ipconfig command i got a... (1 Reply)
Hey, Im using a shared memory segment to share a WINDOW structure among 2 processes. Basically I'm building a multi-player snake game in which multiple prrocesses access the window.
The 'parent' process initializes the shared memory segment and puts the window in it. I can access and perform... (1 Reply)
how to access windows share from a linux box
windows machin is in different workgroup so
how to pass credentials whil acessing a share from a script (2 Replies)
Hi,
I want to make 2 simple programs communicate each other with shared memory.
The programs will share an 2D array. In the first program (intarr.c) i create an x array which is:
1 2 3 4
5 6 7 8
9 10 11 12
and i call the second program (intarr2.c) with execvp(); giving it the segment id as an... (2 Replies)
The last few weeks I've had a problem with Comcast in San Francisco (anyone else sharing the same issue ? Please share !)
During the late afternoon throughout early morning hours I see a high amount of dropped packets and increased latency when pinging my favorite destinations, like 8.8.8.8.
... (1 Reply)
Hi All
Actually I have NAS Storage and Suddenly I got problem
Unable to access the CIFS share folder on windows host, however the IP is pinging and the share is accessible via share name.
The share can be accessed via share name only on Windows higher Windows Versions.
Any help guys (4 Replies)