NAME
WWW::CurlOO::Share - Perl interface for curl_share_* functions
WARNING
THIS MODULE IS UNDER HEAVY DEVELOPEMENT AND SOME INTERFACE MAY CHANGE YET.
SYNOPSIS
use WWW::CurlOO::Share qw(:constants);
my $share = WWW::CurlOO::Share->new();
$share->setopt( CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE );
$easy1->setopt( CURLOPT_SHARE() => $share );
$easy2->setopt( CURLOPT_SHARE() => $share );
DESCRIPTION
This 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 WWW::CurlOO::Share qw(:constants);
METHODS
- CLASS->new( [BASE] )
-
Creates new WWW::CurlOO::Share object. If BASE is specified it will be used as object base, otherwise an empty hash will be used. BASE must be a valid reference which has not been blessed already. It will not be used by the object.
Calls curl_share_init(3).
- OBJECT->setopt( OPTION, VALUE )
-
Set an option. OPTION is a numeric value, use one of CURLSHOPT_* constants. VALUE depends on whatever that option expects.
Calls curl_share_setopt(3).
- OBJECT->DESTROY( )
-
Cleans up. It should not be called manually.
Calls curl_share_cleanup(3).
FUNCTIONS
- strerror( [WHATEVER], CODE )
-
Return a string for error code CODE.
See curl_share_strerror(3) for more info.
SEE ALSO
WWW::CurlOO WWW::CurlOO::Easy WWW::CurlOO::Multi
COPYRIGHT
Copyright (c) 2011 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.