예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="type">EVENT | TRACE</param>
        /// <param name="line"></param>
        /// <param name="eqp"></param>
        /// <param name="service"></param>
        /// <param name="network"></param>
        /// <param name="daemon"></param>
        public string TIBOpen(RealtimeSubjectType type, string line, string eqp, string service, string network, string daemon)
        {
            string result = string.Empty;

            //ex) L8ZFAB.RT.EES.EVENT.8ZFSE51
            string subject = "CLIENT_TIB." + eqp;

            service = "7500";
            network = "";
            daemon  = "17.91.171.147:7500";

            //string subject = line + ".RT.EES." + type.ToString() + "." + eqp;

            _tibManager              = new TibManager();
            _tibManager.ReceivedXml += new TibManager.ReceiveEventHandler(ReceiveXmlDocument);

            _tibManager.OpenTibManager(subject, service, network, daemon);

            if (_tibManager != null)
            {
                result = _tibManager.ERROR_MESSAGE;
            }

            return(result);
        }
예제 #2
0
        public string TIBOpen(RealtimeSubjectType type, string line, string eqp, string subject, string service, string network, string daemon)
        {
            string result = string.Empty;

            //ex) CLIENT_TIB.eSPC.EQPID
            string sSubject = string.Format("{0}.{1}.{2}", subject, "eSPC", eqp);

            //string sSubject = subject + "." + eqp;

            //string subject = line + ".RT.EES." + type.ToString() + "." + eqp;

            _tibManager              = new TibManager();
            _tibManager.ReceivedXml += new TibManager.ReceiveEventHandler(ReceiveXmlDocument);

            _tibManager.OpenTibManager(sSubject, service, network, daemon);

            if (_tibManager != null)
            {
                result = _tibManager.ERROR_MESSAGE;
            }

            return(result);
        }