![]() |
![]()
| ![]() |
![]()
NAMENet::Curl::Share - Perl interface for curl_share_* functions SYNOPSISuse Net::Curl::Share qw(:constants); my $share = Net::Curl::Share->new(); $share->setopt( CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE ); $share->setopt( CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS ); $easy_one->setopt( CURLOPT_SHARE() => $share ); $easy_two->setopt( CURLOPT_SHARE() => $share ); DESCRIPTIONThis module wraps share handle from libcurl and all related functions and constants. It does not export by default anything, but constants can be exported upon request. use Net::Curl::Share qw(:constants); CONSTRUCTOR
METHODS
FUNCTIONSNone of those functions are exported, you must use fully qualified names.
CONSTANTS
CALLBACKSReffer to libcurl documentation for more detailed info on each of those.
Net::Curl::Share::CodeNet::Curl::Share setopt method on failure throws a Net::Curl::Share::Code error object. It has both numeric value and, when used as string, it calls strerror() function to display a nice message. SEE ALSONet::Curl Net::Curl::Easy Net::Curl::Multi Net::Curl::examples libcurl-share(3) libcurl-errors(3) COPYRIGHTCopyright (c) 2011-2015 Przemyslaw Iskra <sparky at pld-linux.org>. You may opt to use, copy, modify, merge, publish, distribute and/or sell copies of the Software, and permit persons to whom the Software is furnished to do so, under the terms of the MPL or the MIT/X-derivate licenses. You may pick one of these licenses.
|