SeasideResearch.LibCurlNet.Easy.IoctlDelegate C# (CSharp) Method

IoctlDelegate() private static method

private static IoctlDelegate ( CURLIOCMD cmd, IntPtr parm ) : CURLIOERR
cmd CURLIOCMD
parm System.IntPtr
return CURLIOERR
        private static CURLIOERR IoctlDelegate(CURLIOCMD cmd,
            IntPtr parm)
        {
            GCHandle gch = (GCHandle)parm;
            Easy easy = (Easy)gch.Target;
            // let's require all of these to be non-null
            if (easy == null || easy.m_pfIoctl == null ||
                easy.m_ioctlData == null)
            {
                return CURLIOERR.CURLIOE_UNKNOWNCMD;
            }
            return easy.m_pfIoctl(cmd, easy.m_ioctlData);
        }