253 |
if (ch instanceof SocketChannelImpl) |
if (ch instanceof SocketChannelImpl) |
254 |
{ |
{ |
255 |
SocketChannelImpl sc = (SocketChannelImpl) ch; |
SocketChannelImpl sc = (SocketChannelImpl) ch; |
256 |
result = new SocketChannelSelectionKey (ch, this); // FIXME: last argument |
result = new SocketChannelSelectionKey (ch, this); |
257 |
} |
} |
258 |
else if (ch instanceof DatagramChannelImpl) |
else if (ch instanceof DatagramChannelImpl) |
259 |
{ |
{ |
260 |
DatagramChannelImpl dc = (DatagramChannelImpl) ch; |
DatagramChannelImpl dc = (DatagramChannelImpl) ch; |
261 |
result = new DatagramChannelSelectionKey (ch, this); // FIXME: last argument |
result = new DatagramChannelSelectionKey (ch, this); |
262 |
} |
} |
263 |
else if (ch instanceof ServerSocketChannelImpl) |
else if (ch instanceof ServerSocketChannelImpl) |
264 |
{ |
{ |
265 |
ServerSocketChannelImpl ssc = (ServerSocketChannelImpl) ch; |
ServerSocketChannelImpl ssc = (ServerSocketChannelImpl) ch; |
266 |
result = new SocketChannelSelectionKey (ch, this); // FIXME: last argument |
result = new ServerSocketChannelSelectionKey (ch, this); |
267 |
} |
} |
268 |
else |
else |
269 |
{ |
{ |