Mercurial > hg > RemoteEditor > REPSessionManager
changeset 209:1eec69035548
*** empty log message ***
author | kent |
---|---|
date | Sat, 30 Aug 2008 12:31:47 +0900 |
parents | 302c4a0afab6 |
children | 3e0cd34d625d |
files | test/channeltest/StringPacker.java test/channeltest/testEditor.java test/channeltest/testSeMa.java |
diffstat | 3 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/channeltest/StringPacker.java Sat Aug 30 12:15:21 2008 +0900 +++ b/test/channeltest/StringPacker.java Sat Aug 30 12:31:47 2008 +0900 @@ -28,7 +28,7 @@ for(int i=0; i<log.length(); i++){ blog.putChar(log.charAt(i)); } - blog.limit(); + blog.limit(blog.position()); /* ヘッダに書き込む情報 */ size = blog.position();
--- a/test/channeltest/testEditor.java Sat Aug 30 12:15:21 2008 +0900 +++ b/test/channeltest/testEditor.java Sat Aug 30 12:31:47 2008 +0900 @@ -22,6 +22,7 @@ try { REPSocketChannel<String> channel; channel = REPSocketChannel.<String>create(new StringPacker()); + channel.configureBlocking(true); ns.writeLog("try to connect to SessionManager whose ip is "+semaIP, 1); while (!channel.connect(semaIP)){
--- a/test/channeltest/testSeMa.java Sat Aug 30 12:15:21 2008 +0900 +++ b/test/channeltest/testSeMa.java Sat Aug 30 12:31:47 2008 +0900 @@ -45,6 +45,7 @@ scs.configureBlocking(false); scs.register(selector, SelectionKey.OP_ACCEPT, null); } catch (IOException e1) { + e1.printStackTrace(); ns.writeLog("cannot create REPServerSocketChannel!, exit."); return; }