Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                mfcc_rms = new MFCC_RMS("MFCC_RMS","RMS", (int)RemoteInterface.RemotingPortEnum.MFCC_RMS
                    , (int)RemoteInterface.NotifyServerPortEnum.MFCC_RMS, (int)RemoteInterface.ConsolePortEnum.MFCC_RMS, "MFCC_RMS", typeof(RemoteObj));

                ConsoleServer.WriteLine("mfcc rms started!");
              //  testtask();
            }
            catch
            {
                System.Environment.Exit(-1);
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            int NotifyPort = -1, RemotingPort = -1, ConsolePort = -1;
            string mfccid = "MFCC_RMS";
            if (args.Length == 0 || args[0] == "MFCC_RMS")
            {
                NotifyPort = (int)NotifyServerPortEnum.MFCC_RMS;
                RemotingPort = (int)RemotingPortEnum.MFCC_RMS;
                ConsolePort = (int)ConsolePortEnum.MFCC_RMS;
                mfccid = "MFCC_RMS";

            }
            else if (args[0] == "MFCC_RMS2")
            {
                NotifyPort = (int)NotifyServerPortEnum.MFCC_RMS2;
                RemotingPort = (int)RemotingPortEnum.MFCC_RMS2;
                ConsolePort = (int)ConsolePortEnum.MFCC_RMS2;
                mfccid = "MFCC_RMS2";
            }
            else
                Environment.Exit(-1);

            System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.Highest;
            mfcc_rms = new MFCC_RMS(mfccid, "RMS", RemotingPort, NotifyPort, ConsolePort, "MFCC_RMS", typeof(RemoteObj));

            ConsoleServer.WriteLine("MFCC_RMS Start success!"+RemotingPort);
            //try
            //{
            //    mfcc_rms = new MFCC_RMS("MFCC_RMS","RMS", (int)RemoteInterface.RemotingPortEnum.MFCC_RMS
            //        , (int)RemoteInterface.NotifyServerPortEnum.MFCC_RMS, (int)RemoteInterface.ConsolePortEnum.MFCC_RMS, "MFCC_RMS", typeof(RemoteObj));

            //    ConsoleServer.WriteLine("mfcc rms started!");
            //  //  testtask();
            //}
            //catch
            //{
            //    System.Environment.Exit(-1);
            //}
        }