SelectionKey.IsAcceptable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tests whether this key's channel is ready to accept a new socket connection.
public bool IsAcceptable { [Android.Runtime.Register("isAcceptable", "()Z", "")] get; }
[<get: Android.Runtime.Register("isAcceptable", "()Z", "")>]
member this.IsAcceptable : bool
Property Value
true
if, and only if,
readyOps() & OP_ACCEPT
is nonzero
- Attributes
Exceptions
if the key has already been canceled.
Remarks
Tests whether this key's channel is ready to accept a new socket connection.
An invocation of this method of the form k.isAcceptable()
behaves in exactly the same way as the expression
<blockquote>
{@code
k.readyOps() & OP_ACCEPT != 0
}
</blockquote>
If this key's channel does not support socket-accept operations then this method always returns false
.
Java documentation for java.nio.channels.SelectionKey.isAcceptable()
.
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.