Exemple #1
0
        private static bool ProcessViewers(List <PacketViewerCallback> list, PacketReader p)
        {
            m_Args.Reinit();

            if (list != null)
            {
                int count = list.Count;
                for (int i = 0; i < count; i++)
                {
                    p.MoveToData();

                    try
                    {
                        list[i](p, m_Args);
                    }
                    catch (Exception e)
                    {
                        Engine.LogCrash(e);
                        new MessageDialog("WARNING: Packet viewer exception!", true, e.ToString()).Show();
                    }
                }
            }

            return(m_Args.Block);
        }
Exemple #2
0
        private static bool ProcessViewers(List <PacketViewerCallback> list, PacketReader p)
        {
            m_Args.Reinit();

            if (list == null)
            {
                return(m_Args.Block);
            }

            foreach (PacketViewerCallback t in list)
            {
                p.MoveToData();

                try
                {
                    t(p, m_Args);
                }
                catch (Exception e)
                {
                    Engine.LogCrash(e);
                    new MessageDialog("WARNING: Packet viewer exception!", true, e.ToString()).Show();
                }
            }

            return(m_Args.Block);
        }
        private static bool ProcessViewers(List <PacketViewerCallback> list, PacketReader p)
        {
            m_Args.Reinit();

            if (list == null)
            {
                return(m_Args.Block);
            }

            foreach (PacketViewerCallback t in list)
            {
                p.MoveToData();

                try
                {
                    t(p, m_Args);
                }
                catch (Exception e)
                {
                    Engine.LogCrash(e);
                }
            }

            return(m_Args.Block);
        }
Exemple #4
0
        public static void ProcessPacket(byte[] data)
        {
            PacketHandler call = m_Table[data[0]] as PacketHandler;

            if (call != null)
            {
                PacketReader pvSrc = new PacketReader(data, RPVEditor.PacketInfo.IsDyn(data[0]));
                pvSrc.MoveToData();
                call(pvSrc);
            }
        }
Exemple #5
0
        private static bool ProcessViewers(List <PacketViewerCallback> list, PacketReader p)
        {
            m_Args.Reinit();

            if (list != null)
            {
                int count = list.Count;
                for (int i = 0; i < count; i++)
                {
                    p.MoveToData();

                    try
                    {
                        list[i](p, m_Args);
                    }
                    catch (Exception e)
                    {
                        Engine.LogCrash(e);
                    }
                }
            }

            return(m_Args.Block);
        }
Exemple #6
0
        private static bool ProcessFilters(ArrayList list, PacketReader p)
        {
            m_Args.Reinit();

            if (list != null)
            {
                for (int i = 0; i < list.Count; i++)
                {
                    p.MoveToData();

                    try
                    {
                        ((PacketFilterCallback)list[i])(p, m_Args);
                    }
                    catch (Exception e)
                    {
                        Engine.LogCrash(e);
                        new MessageDialog("WARNING: Packet filter exception!", true, e.ToString()).Show();
                    }
                }
            }

            return(m_Args.Block);
        }