예제 #1
0
        //to support single instance of parser for multiple hosts
        public HsmsHost(HsmsParameters parameters, SecsIIMessageParser parser)
            : base(parser)
        {
            m_Parameters = parameters;

            m_T3Hash = new Hashtable();

            m_Timer_T5          = new System.Timers.Timer();
            m_Timer_T5.Elapsed += new System.Timers.ElapsedEventHandler(m_Timer_T5_Elapsed);

            m_Timer_T6          = new System.Timers.Timer();
            m_Timer_T6.Elapsed += new System.Timers.ElapsedEventHandler(m_Timer_T6_Elapsed);

            m_Timer_T7          = new System.Timers.Timer();
            m_Timer_T7.Elapsed += new System.Timers.ElapsedEventHandler(m_Timer_T7_Elapsed);

            m_Timer_T8          = new System.Timers.Timer();
            m_Timer_T8.Elapsed += new System.Timers.ElapsedEventHandler(m_Timer_T8_Elapsed);

            m_Timer_Linktest          = new System.Timers.Timer();
            m_Timer_Linktest.Elapsed += new System.Timers.ElapsedEventHandler(m_Timer_Linktest_Elapsed);

            m_Locker = new object();

            m_State = HsmsState.NOT_CONNECTED;

            m_HsmsLogEnabled = false;
        }
예제 #2
0
 public HsmsHost(HsmsParameters parameters)
     : this(parameters, new SecsIIMessageParser())
 {
 }