comparison src/alice/daemon/Config.java @ 12:c4d6ff56b9bf

unite Command and Reply and add Network outline
author one
date Fri, 13 Jan 2012 07:04:38 +0900
parents
children e3f1b21718b0
comparison
equal deleted inserted replaced
11:2ea5acb0ed16 12:c4d6ff56b9bf
1 package alice.daemon;
2
3 public class Config {
4
5 public int port = 10000;
6
7 public Config(String[] args) {
8 for (int i = 0; i< args.length; i++) {
9 if ("-p".equals(args[i])) {
10 port = Integer.parseInt(args[++i]);
11 }
12 }
13 }
14
15 }