Esempio n. 1
0
        static void Main(string[] args)
        {
            switch (args[0])
            {
            case "-s":    //slave mode
                var my_slave = new MySlave();
                my_slave.Start(true);
                break;

            case "-c":    //client mode
                DealWithCommand();
                break;
            }
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     switch (args[0])
     {
         case "-s"://slave mode
             var my_slave = new MySlave();
             my_slave.Start(true);
             break;
         case "-c"://client mode
             DealWithCommand();
             break;
     }
 }