Exemple #1
0
        /// <summary>
        /// 压力测试
        /// </summary>
        private void OnRobotTest(PacketBase packet)
        {
            ws2gs.RobotTest msg = packet as ws2gs.RobotTest;

            gs2c.RobotTest rep_msg = PacketPools.Get(gs2c.msg.ROBOT_TEST) as gs2c.RobotTest;
            rep_msg.length = msg.length;
            ForClientNetManager.Instance.Send(msg.client_uid.conn_idx, rep_msg);
        }
        /// <summary>
        /// 压力测试
        /// </summary>
        /// <param name="packet"></param>
        private void OnRobotTest(PacketBase packet)
        {
            gs2ws.RobotTest msg = packet as gs2ws.RobotTest;

            ws2gs.RobotTest rep_msg = PacketPools.Get(ws2gs.msg.ROBOT_TEST) as ws2gs.RobotTest;
            rep_msg.client_uid = msg.client_uid;
            rep_msg.length     = msg.length;
            this.Send(rep_msg);
        }