C# Class CurlSharp.CurlMulti

Implements the curl_multi_xxx API.
Inheritance: IDisposable
显示文件 Open project: WarlaxZ/Jackett Class Usage Examples

Public Methods

Method 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

Method Description
Dispose ( bool disposing ) : void
ensureHandle ( ) : void

Method Details

AddHandle() public method

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. ///
return CurlMultiCode

CurlMulti() public method

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
return System

Dispose() public method

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

FdSet() public method

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

InfoRead() public method

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[]
return CurlSharp.CurlMultiInfo[]

Perform() public method

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. ///
return CurlMultiCode

RemoveHandle() public method

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. ///
return CurlMultiCode

Select() public method

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. ///
return int

StrError() public method

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