SelectionKey.OpRead Field

Definition

Caution

This constant will be removed in the future version. Use Java.Nio.Channels.Operations enum directly instead of this field.

Operation-set bit for read operations.

[Android.Runtime.Register("OP_READ")]
[System.Obsolete("This constant will be removed in the future version. Use Java.Nio.Channels.Operations enum directly instead of this field.", true)]
public const Java.Nio.Channels.Operations OpRead = 1;
[<Android.Runtime.Register("OP_READ")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Nio.Channels.Operations enum directly instead of this field.", true)>]
val mutable OpRead : Java.Nio.Channels.Operations

Field Value

Value = 1
Attributes

Remarks

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.

Java documentation for java.nio.channels.SelectionKey.OP_READ.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to