Exemple #1
0
 /// <summary>
 ///     Read/write data to/from each CurlEasy object.
 /// </summary>
 /// <param name="runningObjects">
 ///     The number of <see cref="CurlEasy" /> objects still in process is
 ///     written by this function to this reference parameter.
 /// </param>
 /// <returns>
 ///     A <see cref="CurlMultiCode" />, hopefully <c>CurlMultiCode.Ok</c>
 /// </returns>
 /// <exception cref="System.NullReferenceException">
 ///     This is thrown if the native <c>CurlMulti</c> handle wasn't
 ///     created successfully.
 /// </exception>
 public CurlMultiCode Perform(ref int runningObjects)
 {
     ensureHandle();
     return(NativeMethods.curl_multi_perform(_pMulti, ref runningObjects));
 }
Exemple #2
0
 /// <summary>
 ///     Get a string description of an error code.
 /// </summary>
 /// <param name="errorNum">
 ///     The <see cref="CurlMultiCode" /> for which to obtain the error
 ///     string description.
 /// </param>
 /// <returns>The string description.</returns>
 public string StrError(CurlMultiCode errorNum) => Marshal.PtrToStringAnsi(NativeMethods.curl_multi_strerror(errorNum));