예제 #1
0
        public bool IsTcpIpListening(BCFApplication bcfApp)
        {
            bool IsListening = false;
            int  local_port  = ITcpIpControl.getLocalPortNum(bcfApp, TcpIpAgentName);

            if (local_port != 0)
            {
                iibg3k0.ttc.Common.TCPIP.TcpIpServer tcpip_server = bcfApp.getTcpIpServerByPortNum(local_port);
                if (tcpip_server != null)
                {
                    IsListening = tcpip_server.IsListening;
                }
            }
            return(IsListening);
        }