C# Класс CurlSharp.CurlMulti

Implements the curl_multi_xxx API.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void
ensureHandle ( ) : void

Описание методов

AddHandle() публичный Метод

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. ///
Результат CurlMultiCode

CurlMulti() публичный Метод

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
Результат System

Dispose() публичный Метод

Cleanup unmanaged resources.
public Dispose ( ) : void
Результат void

FdSet() публичный Метод

Set internal file desriptor information before calling Select.
/// This is thrown if the native CurlMulti handle wasn't /// created successfully. ///
public FdSet ( ) : CurlMultiCode
Результат CurlMultiCode

InfoRead() публичный Метод

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[]
Результат CurlSharp.CurlMultiInfo[]

Perform() публичный Метод

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. ///
Результат CurlMultiCode

RemoveHandle() публичный Метод

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. ///
Результат CurlMultiCode

Select() публичный Метод

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. ///
Результат int

StrError() публичный Метод

Get a string description of an error code.
public StrError ( CurlMultiCode errorNum ) : String
errorNum CurlMultiCode /// The for which to obtain the error /// string description. ///
Результат String