Esempio n. 1
0
        public void Update(IPHelper.I_SOCKET_ROW socketRow, UInt64 Interval)
        {
            if (socketRow != null)
            {
                State = (int)socketRow.State;
            }

            // a program may have been removed than the sockets get unasigned and has to be re asigned
            if (Program == null)
            {
                Program prog = ProgID == null ? null : App.engine.ProgramList.FindProgram(ProgID, true, ProgramID.FuzzyModes.Any);
                if (prog != null)
                {
                    Program = prog;
                    prog.AddSocket(this);
                    Access = prog.LookupRuleAccess(this);
                }
            }

            Stats.Update(Interval);
        }
Esempio n. 2
0
        public void Update(IPHelper.I_SOCKET_ROW socketRow, UInt64 Interval)
        {
            State = (int)socketRow.State;

            Stats.Update(Interval);
        }