C# Class CurlSharp.CurlShare

This class provides an infrastructure for serializing access to data shared by multiple CurlEasy objects, including cookie data and Dns hosts. It implements the curl_share_xxx API.
Inheritance: IDisposable
Mostra file Open project: WarlaxZ/Jackett Class Usage Examples

Public Methods

Method Description
CurlShare ( ) : System

Constructor

Dispose ( ) : void

Cleanup unmanaged resources.

SetOpt ( CurlShareOption option, Object parameter ) : CurlShareCode

Set options for this object.

StrError ( CurlShareCode errorNum ) : String

Return a String description of an error code.

Private Methods

Method Description
Dispose ( bool disposing ) : void
EnsureHandle ( ) : void
GetHandle ( ) : IntPtr
LockDelegate ( int data, int access, IntPtr userPtr ) : void
UnlockDelegate ( int data, IntPtr userPtr ) : void
installDelegates ( ) : void
setLastError ( CurlShareCode code, CurlShareOption opt ) : void
setShareOption ( CurlShareOption option, CurlLockData value ) : CurlShareCode

Method Details

CurlShare() public method

Constructor
/// This is thrown /// if hasn't bee properly initialized. /// /// This is thrown if /// the native share handle wasn't created successfully. ///
public CurlShare ( ) : System
return System

Dispose() public method

Cleanup unmanaged resources.
public Dispose ( ) : void
return void

SetOpt() public method

Set options for this object.
/// This is thrown if /// the native share handle wasn't created successfully. ///
public SetOpt ( CurlShareOption option, Object parameter ) : CurlShareCode
option CurlShareOption /// One of the values in the /// enumeration. ///
parameter Object /// An appropriate object based on the value passed in the /// option argument. See /// for more information about the appropriate parameter type. ///
return CurlShareCode

StrError() public method

Return a String description of an error code.
public StrError ( CurlShareCode errorNum ) : String
errorNum CurlShareCode /// The for which to obtain the error /// string description. ///
return String