コード例 #1
0
 public static void main(string[] args)
 {
     try
     {
         CommandInterpreter  commandInterpreter  = new CommandInterpreter();
         SocketCommandClient socketCommandClient = new SocketCommandClient("localhost", 7890);
         commandInterpreter.add("s", new SocketCommandClient_1(socketCommandClient));
         commandInterpreter.add("r", new SocketCommandClient_2(socketCommandClient));
         commandInterpreter.add("sr", new SocketCommandClient_3(socketCommandClient));
         commandInterpreter.setPrompt("scc-test> ");
         commandInterpreter.run();
     }
     catch (System.Exception ex)
     {
         java.lang.System.err.println("error occured.");
         Throwable.instancehelper_printStackTrace(ex);
         java.lang.System.exit(-1);
     }
     return;
 }
コード例 #2
0
 internal SocketCommandClient_2(SocketCommandClient socketCommandClient)
 {
     val_sci = socketCommandClient;
 }