Пример #1
0
        /*===========================================================
        *  功  能:登陆请求
        *  参  数:tLogInfo - 服务端登录信息
        *       dwTimeoutS - 超时时间(秒)
        *       qwContext - 回调上下文
        *       pdwLoginID - 返回登录ID
        *  返回值:成功返回IASSDK_OK,失败返回错误码
        *  ===========================================================*/
        public UInt32 IasSdk_Login(string IP, ushort Port, out UInt32 pdwLoginID)
        {
            UInt32             dwTimeoutS = 30 * 1000;
            UInt64             qwContext  = 0;
            TIASSDK_LOGIN_INFO tLogInfo   = new TIASSDK_LOGIN_INFO()
            {
                szIp  = IP,
                wPort = Port,
            };

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXRealtimeSDKProtocol IasSdk_Login IP:" + IP + ",port:" + Port);
            UInt32 retVal = IVXRealtimeSDKProtocol.IasSdk_Login(tLogInfo, dwTimeoutS, qwContext, out pdwLoginID);

            if (retVal > 0)
            {
                IAS_CheckError(retVal);
            }

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXRealtimeSDKProtocol IasSdk_Login ret:" + retVal + ",pdwLoginID:" + pdwLoginID);
            return(retVal);
        }
Пример #2
0
 public static extern UInt32 IasSdk_Login(TIASSDK_LOGIN_INFO tLogInfo, UInt32 dwTimeoutS,
                                          UInt64 qwContext, out UInt32 pdwLoginID);