示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <exception cref="System.InvalidOperationException">This is thrown
 /// if <see cref="Curl"/> hasn't bee properly initialized.</exception>
 /// <exception cref="System.NullReferenceException">
 /// This is thrown if the native <c>Multi</c> handle wasn't
 /// created successfully.
 /// </exception>
 public Multi()
 {
     Curl.EnsureCurl();
     m_pMulti = External.curl_multi_init();
     EnsureHandle();
     m_fdSets        = IntPtr.Zero;
     m_maxFD         = 0;
     m_fdSets        = External.curl_shim_alloc_fd_sets();
     m_multiInfo     = null;
     m_bGotMultiInfo = false;
     m_htEasy        = new Hashtable();
 }