- 论坛徽章:
- 0
|
从你说话的样子和事情来看,还有态度,一个字, “很差”。别的词语不好意思说出口。
api/java/nio/channels/SelectionKey.html#OP_READ
OP_READ
public static final int OP_READ
Operation-set bit for read operations.
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也有同样的条件说明。
好好看看吧。心高气傲,可以,心浮气躁,否矣。 |
|