语言

SelectionKey.OpConnect 字段

定义

注意

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

套接字连接操作的操作集位。

[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

字段值

Value = 8
属性

注解

套接字连接操作的操作集位。

假设选择键的兴趣集包含在 OP_CONNECT 选择操作开始时。 如果选择器检测到相应的套接字通道已准备好完成其连接序列或挂起错误,则它将添加到 OP_CONNECT 密钥的就绪集。

Java文档java.nio.channels.SelectionKey.OP_CONNECT

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于