Suppose that a selection key's interest set contains OP_READ at the start of a selection operation. If the selector detects that the corresponding channel is ready for reading, has reached end-of-stream, has been remotely shut down for further reading, or has an error pending, then it will add OP_READ to the key's ready-operation set and add the key to its selected-key set.
同样,OP_WRITE也有同样的条件说明。
好好看看吧。心高气傲,可以,心浮气躁,否矣。作者: heusun 时间: 2007-07-08 21:28 support level 7