示例#1
0
文件: WmCoreOp.cs 项目: tmbx/kwm-ng
        /// <summary>
        /// Submit the login query to KMOD.
        /// </summary>
        private void SubmitKmodLoginQuery()
        {
            K3p.K3pLoginTest cmd = new K3p.K3pLoginTest();
            cmd.Info.kps_login     = KpsUserName;
            cmd.Info.kps_secret    = KpsUserPwd;
            cmd.Info.secret_is_pwd = 1;
            cmd.Info.kps_net_addr  = KpsAddr;
            cmd.Info.kps_port_num  = 443;

            m_kmodQuery = new KmodQuery();
            m_kmodQuery.Submit(Wm.KmodBroker, new K3pCmd[] { cmd }, OnKmodLoginResult);
        }
示例#2
0
 /// <summary>
 /// Fill a login command with the required parameters and return it.
 /// </summary>
 public K3p.K3pLoginTest GetLoginCommand()
 {
     K3p.K3pLoginTest cmd = new K3p.K3pLoginTest();
     cmd.Info.kps_login = UserName;
     cmd.Info.kps_secret = Password;
     cmd.Info.secret_is_pwd = 1;
     cmd.Info.kps_net_addr = KpsAddress;
     cmd.Info.kps_port_num = 443;
     return cmd;
 }
示例#3
0
文件: WmCoreOp.cs 项目: tmbx/kwm-ng
        /// <summary>
        /// Submit the login query to KMOD.
        /// </summary>
        private void SubmitKmodLoginQuery()
        {
            K3p.K3pLoginTest cmd = new K3p.K3pLoginTest();
            cmd.Info.kps_login = KpsUserName;
            cmd.Info.kps_secret = KpsUserPwd;
            cmd.Info.secret_is_pwd = 1;
            cmd.Info.kps_net_addr = KpsAddr;
            cmd.Info.kps_port_num = 443;

            m_kmodQuery = new KmodQuery();
            m_kmodQuery.Submit(Wm.KmodBroker, new K3pCmd[] { cmd }, OnKmodLoginResult);
        }