/// <summary> /// 加速检测 /// </summary> private void OnSpeedCheck(ClientSession session, PacketBase packet) { c2gs.SpeedCheck msg = packet as c2gs.SpeedCheck; session.speed_checker.OnRecvTrapMsg(msg.check_sn); }
/// <summary> /// 加速检测 /// </summary> public static void SendSpeedCheck(int check_sn) { c2gs.SpeedCheck msg = PacketPools.Get(c2gs.msg.SPEED_CHECK) as c2gs.SpeedCheck; msg.check_sn = check_sn; ClientNetManager.Instance.Send(msg); }