Exemple #1
0
        public void Working()
        {
            try
            {
                TcpListernerThread tmptcp = new TcpListernerThread();

                TcpListernerThread.mIP = ConfigurationManager.AppSettings["ServerIP"];
                TcpListernerThread.mPort = ConfigurationManager.AppSettings["ServerPort"];

                var tmpType = "RFID采集服务";//Program._sysType.Equals("0") ? "入库" : "出库";
                AllMsg("******************" + tmpType + "************************");
                AllMsg("TcpListener 监听服务成功启动.*  * IP:" + TcpListernerThread.mIP + ", Port:" + TcpListernerThread.mPort);
                AllMsg("******************" + tmpType + "************************");

                Thread tr = new Thread(tmptcp.GetMessage);
                tr.IsBackground = true;
                tr.Start();

            }
            catch (Exception ex)
            {
                logger.Error(ex);
            }
        }
Exemple #2
0
        public void Working()
        {
            TcpListernerThread tmptcp = new TcpListernerThread();

            TcpListernerThread.mIP = ConfigurationManager.AppSettings["ServerIP"];
            TcpListernerThread.mPort = ConfigurationManager.AppSettings["ServerPort"];

            var tmpType = "RFID采集服务";//Program._sysType.Equals("0") ? "入库" : "出库";
            AllMsg("******************[ " + tmpType + " ]************************");
            AllMsg("*_* *_* *_* *_* *_*_______________#_# #_# #_# #_# #_# #_# ");
            AllMsg("     *_* 监听服务成功启动.IP:" + TcpListernerThread.mIP + ", Port:" + TcpListernerThread.mPort);
            AllMsg("******************[ " + tmpType + " ]************************");
            AllMsg("*_* *_* *_* *_* *_*_______________#_# #_# #_# #_# #_# #_# ");

            Thread tr = new Thread(tmptcp.GetMessage);
            tr.IsBackground = true;
            tr.Start();
        }