예제 #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);
        }