示例#1
0
        private bool OnDisconnected(NetCommand command)
        {
            UInt64 nSessionID;

            if (command.ReadUInt64(out nSessionID) == false)
            {
                return(false);
            }

            m_refServerMonitorClient.OnDisconnectedMachine(nSessionID);
            return(true);
        }
示例#2
0
        public bool OnDisconnected(NetCommand command)
        {
            UInt64 nSessionID;

            if (command.ReadUInt64(out nSessionID) == false)
            {
                return(false);
            }

            m_refServerMonitor.OnDisconnected(nSessionID);

            return(true);
        }
示例#3
0
        private bool OnConnected(NetCommand command)
        {
            UInt64 nSessionID;
            bool   bIsSuccess;

            if (command.ReadUInt64(out nSessionID) == false)
            {
                return(false);
            }
            if (command.ReadBoolean(out bIsSuccess) == false)
            {
                return(false);
            }

            m_refServerMonitorClient.OnConnectedMachine(nSessionID, bIsSuccess);
            return(true);
        }
        private bool OnConnected(NetCommand command)
        {
            UInt64 nSessionID;
            bool   bIsSuccess;

            if (command.ReadUInt64(out nSessionID) == false)
            {
                return(false);
            }
            if (command.ReadBoolean(out bIsSuccess) == false)
            {
                return(false);
            }

            if (bIsSuccess)
            {
                m_refAutoModeClient.OnConnected();
            }
            else
            {
                System.Windows.Forms.Application.Exit();
            }
            return(true);
        }