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
Afficher le fichier Open project: WarlaxZ/Jackett Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat System

Dispose() public méthode

Cleanup unmanaged resources.
public Dispose ( ) : void
Résultat void

SetOpt() public méthode

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. ///
Résultat CurlShareCode

StrError() public méthode

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