# HG changeset patch # User kono # Date 1220179152 -32400 # Node ID 6589b148dd136934c83b66ead44b7f57cd0d334c # Parent c52e0e831d91ecf090d039f2a2068136420ceee3 *** empty log message *** diff -r c52e0e831d91 -r 6589b148dd13 rep/handler/REPHandlerImpl.java --- a/rep/handler/REPHandlerImpl.java Sun Aug 31 19:33:23 2008 +0900 +++ b/rep/handler/REPHandlerImpl.java Sun Aug 31 19:39:12 2008 +0900 @@ -1,10 +1,7 @@ package rep.handler; import java.io.IOException; -import java.nio.channels.SelectableChannel; - import rep.REPCommand; -import rep.REPCommandPacker; import rep.SessionManager; import rep.channel.REPSelectionKey; import rep.channel.REPSocketChannel; @@ -20,11 +17,7 @@ @SuppressWarnings("unchecked") public void handle(REPSelectionKey key) throws IOException { - SelectableChannel s = key.channel(); - if(!(s instanceof REPSocketChannel) ){ - System.out.println("error"); - } - REPSocketChannel channel = (REPSocketChannel) key.channel(new REPCommandPacker()); + REPSocketChannel channel = (REPSocketChannel) key.channel(); System.out.println("REPHandlerImpl.handle() : channel = " + channel); REPCommand command = channel.read();