Share via


SelectionKey.OpConnect 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-connect operations.

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

Field Value

Value = 8
Attributes

Remarks

Operation-set bit for socket-connect operations.

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

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

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