comparison rep/channel/SelectionKeySimulator.java @ 234:0498425202a4

made ChannelSimulator no extends SelectableChannelSimulator but REPSocketChannel directly
author kent
date Sun, 31 Aug 2008 19:02:34 +0900
parents 6cd4aab9fea3
children c410eda661e8
comparison
equal deleted inserted replaced
233:dae90ded1bcd 234:0498425202a4
34 else 34 else
35 return false; 35 return false;
36 } 36 }
37 37
38 public void setFlag() { 38 public void setFlag() {
39 SelectableChannelSimulator<?> scs = (SelectableChannelSimulator<?>) channel; 39 ChannelSimulator<?> scs = (ChannelSimulator<?>) channel;
40 ready = 0; 40 ready = 0;
41 if(scs.isAcceptable()) ready |= OP_ACCEPT; 41 if(scs.isAcceptable()) ready |= OP_ACCEPT;
42 if(scs.isReadable()) ready |= OP_READ; 42 if(scs.isReadable()) ready |= OP_READ;
43 if(scs.isWritable()) ready |= OP_WRITE; 43 if(scs.isWritable()) ready |= OP_WRITE;
44 } 44 }