FD_ZERO() static private method

static private FD_ZERO ( fd_set fds ) : void
fds fd_set
return void
示例#1
0
        /// <summary>
        ///     Set internal file desriptor information before calling Select.
        /// </summary>
        /// <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 FdSet()
        {
            ensureHandle();
#if USE_LIBCURLSHIM
            return(NativeMethods.curl_shim_multi_fdset(_pMulti, _fdSets, ref _maxFd));
#else
            NativeMethods.FD_ZERO(_fd_read);
            NativeMethods.FD_ZERO(_fd_write);
            NativeMethods.FD_ZERO(_fd_except);
            return(NativeMethods.curl_multi_fdset(_pMulti, ref _fd_read, ref _fd_write, ref _fd_except, ref _maxFd));
#endif
        }