Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/channel/REPSocketChannel.java @ 234:0498425202a4
made ChannelSimulator no extends SelectableChannelSimulator
but REPSocketChannel directly
author | kent |
---|---|
date | Sun, 31 Aug 2008 19:02:34 +0900 |
parents | 844c8f46584b |
children | 168dd841be51 |
comparison
equal
deleted
inserted
replaced
233:dae90ded1bcd | 234:0498425202a4 |
---|---|
137 | 137 |
138 public boolean connect(SocketAddress semaIP) throws IOException { | 138 public boolean connect(SocketAddress semaIP) throws IOException { |
139 return sc.connect(semaIP); | 139 return sc.connect(semaIP); |
140 } | 140 } |
141 | 141 |
142 | |
142 public SelectionKey register1(REPSelector<P> sel, int ops, Object att) | 143 public SelectionKey register1(REPSelector<P> sel, int ops, Object att) |
143 throws ClosedChannelException { | 144 throws ClosedChannelException { |
144 if(sel instanceof REPSelector) { | 145 if(sel instanceof REPSelector) { |
145 REPSelector<P> s = (REPSelector<P>)sel; | 146 REPSelector<P> s = (REPSelector<P>)sel; |
146 return sc.register(s.selector, ops,att); | 147 return sc.register(s.selector, ops,att); |
157 return sc.register(s.selector, ops,att); | 158 return sc.register(s.selector, ops,att); |
158 } | 159 } |
159 return sc.register(sel, ops,att); | 160 return sc.register(sel, ops,att); |
160 } | 161 } |
161 | 162 |
162 | |
163 } | 163 } |