Example #1
0
        public void OnConnectedMachine(UInt64 nSessionID, bool bIsSuccess)
        {
            MachineInfo refMachineInfo = m_machineInfoMgr.Find(nSessionID);

            if (null == refMachineInfo)
            {
                return;
            }

            if (bIsSuccess == false)
            {
                m_netClient.DeleteClientSession(nSessionID);
                refMachineInfo.SetDisconnected();
                return;
            }

            refMachineInfo.SetConnected();

            m_refView.refTreeViewCntroller.SetMachineIcon(refMachineInfo.GetName(), true);

            m_commandSender.SendCheckCommandVersionReq(nSessionID, CMD.COMMAND_VERSION);

            string strMsg = "서버 모니터 연결 됨\n";

            strMsg += "Machine\t: " + refMachineInfo.GetName();
            m_refView.ShowBalloonTip("ServerMonitor", strMsg);
        }
 public bool OnConnected()
 {
     m_commandSender.SendCheckCommandVersionReq(m_nSessionID, CMD.COMMAND_VERSION);
     return(true);
 }