Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/channel/REPSocketChannel.java @ 240:168dd841be51 iterator-bug-fig **INVALID**
selected key Interator fix.
author | kono |
---|---|
date | Sun, 31 Aug 2008 20:39:06 +0900 |
parents | 0498425202a4 |
children | 1e5bf172b4d6 |
line wrap: on
line diff
--- a/rep/channel/REPSocketChannel.java Sun Aug 31 19:49:35 2008 +0900 +++ b/rep/channel/REPSocketChannel.java Sun Aug 31 20:39:06 2008 +0900 @@ -32,6 +32,7 @@ public static void addChannel(SelectableChannel sc,SelectableChannel rc) { channels.put(sc, rc); + System.err.println("add Channel "+channels); } public void close1() throws IOException { @@ -74,11 +75,6 @@ } - public SelectionKey register(REPSelector<P> sel, int ops, Object att) throws ClosedChannelException { - return sc.register(sel.selector, ops, att); - } - - @Override public int validOps() { return sc.validOps(); @@ -139,6 +135,11 @@ return sc.connect(semaIP); } + public SelectionKey register(REPSelector<P> sel, int ops, Object att) throws ClosedChannelException { + return sc.register(sel.selector, ops, att); + } + + public SelectionKey register1(REPSelector<P> sel, int ops, Object att) throws ClosedChannelException {