C# Class CurlSharp.CurlMulti

Implements the curl_multi_xxx API.
Inheritance: IDisposable
Afficher le fichier Open project: WarlaxZ/Jackett Class Usage Examples

Méthodes publiques

Méthode Description
AddHandle ( CurlEasy curlEasy ) : CurlMultiCode

Add an CurlEasy object.

CurlMulti ( ) : System

Constructor

Dispose ( ) : void

Cleanup unmanaged resources.

FdSet ( ) : CurlMultiCode

Set internal file desriptor information before calling Select.

InfoRead ( ) : CurlSharp.CurlMultiInfo[]

Obtain status information for a CurlMulti transfer. Requires CurlSharp be compiled with the libcurlshim helper.

Perform ( int &runningObjects ) : CurlMultiCode

Read/write data to/from each CurlEasy object.

RemoveHandle ( CurlEasy curlEasy ) : CurlMultiCode

Remove an CurlEasy object.

Select ( int timeoutMillis ) : int

Call select() on the CurlEasy objects.

StrError ( CurlMultiCode errorNum ) : String

Get a string description of an error code.

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
ensureHandle ( ) : void

Method Details

AddHandle() public méthode

Add an CurlEasy object.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public AddHandle ( CurlEasy curlEasy ) : CurlMultiCode
curlEasy CurlEasy /// object to add. ///
Résultat CurlMultiCode

CurlMulti() public méthode

Constructor
/// This is thrown /// if hasn't bee properly initialized. /// /// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public CurlMulti ( ) : System
Résultat System

Dispose() public méthode

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

FdSet() public méthode

Set internal file desriptor information before calling Select.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public FdSet ( ) : CurlMultiCode
Résultat CurlMultiCode

InfoRead() public méthode

Obtain status information for a CurlMulti transfer. Requires CurlSharp be compiled with the libcurlshim helper.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public InfoRead ( ) : CurlSharp.CurlMultiInfo[]
Résultat CurlSharp.CurlMultiInfo[]

Perform() public méthode

Read/write data to/from each CurlEasy object.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public Perform ( int &runningObjects ) : CurlMultiCode
runningObjects int /// The number of objects still in process is /// written by this function to this reference parameter. ///
Résultat CurlMultiCode

RemoveHandle() public méthode

Remove an CurlEasy object.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public RemoveHandle ( CurlEasy curlEasy ) : CurlMultiCode
curlEasy CurlEasy /// object to remove. ///
Résultat CurlMultiCode

Select() public méthode

Call select() on the CurlEasy objects.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public Select ( int timeoutMillis ) : int
timeoutMillis int /// The timeout for the internal select() call, /// in milliseconds. ///
Résultat int

StrError() public méthode

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