语言

SelectionKey.OpAccept 字段

定义

注意

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

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

[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

字段值

Value = 16
属性

注解

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

假设选择键的兴趣集包含在 OP_ACCEPT 选择操作开始时。 如果选择器检测到相应的服务器套接字通道已准备好接受另一个连接,或者存在挂起错误,则会将其添加到 OP_ACCEPT 密钥的就绪集。

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

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

适用于