public bool Init(uint port)
        {
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXWSSDKProtocol WebServiceCommuInit port:" + port);
            Int32 retVal = IVXWSSDKProtocol.WebServiceCommuInit(new TWebSrvCommuInitParam()
            {
                qwContext = 0, wListenPort = (ushort)port
            });

            if (retVal > 0)
            {
                GetError((uint)retVal);
            }

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXWSSDKProtocol WebServiceCommuInit ret:" + 0);

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXWSSDKProtocol WebServiceCommuInstCreate ");
            m_FuncWebSrvCommuRcvDataExCB = OnFuncWebSrvCommuRcvDataExCB;
            m_FuncWebSrvCommuRcvDataCB   = OnFuncWebSrvCommuRcvDataCB;
            TWebSrvCommuInstParam tInstParam = new TWebSrvCommuInstParam()
            {
                pfuncRcvDataCB   = null,//m_FuncWebSrvCommuRcvDataCB,
                pfuncRcvDataCBEx = m_FuncWebSrvCommuRcvDataExCB,
                qwContext        = 0,
            };

            m_pdwInstId = -1;
            retVal      = IVXWSSDKProtocol.WebServiceCommuInstCreate(tInstParam, out m_pdwInstId);
            if (retVal == 0)
            {
                GetError((uint)EmWebsrvErrorCode.WEBSRV_COMMU_BIND_ERROR);
            }


            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXWSSDKProtocol WebServiceCommuInstCreate ret:" + 0 + " ,pdwInstId:" + m_pdwInstId);

            return(retVal == 0);
        }
 public static extern Int32 WebServiceCommuInstCreate(TWebSrvCommuInstParam tInstParam, out int pdwInstId);