共用方式為


SelectionKey.OpAccept 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 socket-accept operations.

[Android.Runtime.Register("OP_ACCEPT")]
[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 OpAccept = 16;
[<Android.Runtime.Register("OP_ACCEPT")>]
[<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 OpAccept : Java.Nio.Channels.Operations

Field Value

Value = 16
Attributes

Remarks

Operation-set bit for socket-accept operations.

Suppose that a selection key's interest set contains OP_ACCEPT at the start of a selection operation. If the selector detects that the corresponding server-socket channel is ready to accept another connection, or has an error pending, then it will add OP_ACCEPT to the key's ready set.

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

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