comparison test/channeltest/testSeMa.java @ 203:4c0a94836357 simullator-nio-both-worked

*** empty log message ***
author kono
date Sat, 30 Aug 2008 11:21:43 +0900
parents b85525d83b46
children dfc2afab1325
comparison
equal deleted inserted replaced
202:ffedaf382e0c 203:4c0a94836357
63 for(REPSelectionKey<String> key : set) { 63 for(REPSelectionKey<String> key : set) {
64 64
65 if(key.isAcceptable()){ 65 if(key.isAcceptable()){
66 ns.writeLog("gets acceptable channel", 1); 66 ns.writeLog("gets acceptable channel", 1);
67 REPSocketChannel<String> channel = key.accept(pack); 67 REPSocketChannel<String> channel = key.accept(pack);
68 if(channel==null) continue;
68 channel.configureBlocking(false); 69 channel.configureBlocking(false);
69 channel.register(selector, SelectionKey.OP_READ, null); 70 channel.register(selector, SelectionKey.OP_READ, null);
70 ns.writeLog("accepts a client.", 1); 71 ns.writeLog("accepts a client.", 1);
71 72
72 }else if(key.isReadable()){ 73 }else if(key.isReadable()){