Mercurial > hg > RemoteEditor > REPSessionManager
changeset 238:6589b148dd13
*** empty log message ***
author | kono |
---|---|
date | Sun, 31 Aug 2008 19:39:12 +0900 |
parents | c52e0e831d91 |
children | f9b1a9ba1a73 |
files | rep/handler/REPHandlerImpl.java |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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<REPCommand> key) throws IOException { - SelectableChannel s = key.channel(); - if(!(s instanceof REPSocketChannel) ){ - System.out.println("error"); - } - REPSocketChannel<REPCommand> channel = (REPSocketChannel<REPCommand>) key.channel(new REPCommandPacker()); + REPSocketChannel<REPCommand> channel = (REPSocketChannel<REPCommand>) key.channel(); System.out.println("REPHandlerImpl.handle() : channel = " + channel); REPCommand command = channel.read();