/// <summary>
        /// 压力测试
        /// </summary>
        /// <param name="packet"></param>
        private void OnRobotTest(PacketBase packet)
        {
            ss2gs.RobotTest msg = packet as ss2gs.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);
        }
Esempio n. 2
0
        /// <summary>
        /// 压力测试
        /// </summary>
        private void OnRobotTest(PacketBase packet)
        {
            gs2ss.RobotTest msg = packet as gs2ss.RobotTest;

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