Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/channel/REPServerSocketChannel.java @ 183:eb89a73976fa
*** empty log message ***
author | kent |
---|---|
date | Fri, 29 Aug 2008 13:40:29 +0900 |
parents | 4ed6393ec68e |
children | 3c82100cdadd |
line wrap: on
line diff
--- a/rep/channel/REPServerSocketChannel.java Fri Aug 29 13:35:49 2008 +0900 +++ b/rep/channel/REPServerSocketChannel.java Fri Aug 29 13:40:29 2008 +0900 @@ -59,17 +59,20 @@ ss.configureBlocking(block); } + + public SelectionKey register(REPSelector sel, int ops, Object att) throws ClosedChannelException { + assert(!isSimulation); + REPSelector selector = sel; + if(sel!=null) + return selector.register(ss, ops, att); + else + return null; + } + @Override public SocketChannel accept() throws IOException { // TODO Auto-generated method stub return null; } - - - public SelectionKey register(REPSelector sel, int ops, Object att) throws ClosedChannelException { - assert(!isSimulation); - REPSelector selector = sel; - return selector.register(ss, ops, att); - } }