comparison src/alice/test/codesegment/TestRemoteAlice.java @ 20:0bb03861b5cd

set name to Thread
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Sun, 15 Jan 2012 18:44:25 +0900
parents e7867328a2fb
children
comparison
equal deleted inserted replaced
19:e7867328a2fb 20:0bb03861b5cd
13 public class TestRemoteAlice { 13 public class TestRemoteAlice {
14 14
15 public static void main(String[] args) { 15 public static void main(String[] args) {
16 Config conf = new Config(args); 16 Config conf = new Config(args);
17 17
18 final AliceDaemon daemon = new AliceDaemon(conf); 18 new AliceDaemon(conf).listen();
19 new Thread() {
20
21 @Override
22 public void run() {
23 // TODO Auto-generated method stub
24 daemon.listen();
25 }
26
27 }.start();
28 19
29 boolean connect = true; 20 boolean connect = true;
30 do { 21 do {
31 try { 22 try {
32 SocketChannel sc = SocketChannel.open(new InetSocketAddress(conf.hostname, conf.connectPort)); 23 SocketChannel sc = SocketChannel.open(new InetSocketAddress(conf.hostname, conf.connectPort));