CurlSharp.NativeMethods.curl_share_init C# (CSharp) Method

curl_share_init() private method

private curl_share_init ( ) : IntPtr
return System.IntPtr
		internal static extern IntPtr curl_share_init ();

Usage Example

Beispiel #1
0
        private Object _userData;                              // user data for delegates

        /// <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>share</c> handle wasn't created successfully.
        /// </exception>
        public CurlShare()
        {
            Curl.EnsureCurl();
            _pShare = NativeMethods.curl_share_init();
            EnsureHandle();
            LockFunction   = null;
            UnlockFunction = null;
            UserData       = null;
            installDelegates();
        }