Condividi tramite


SocketChannel.ValidOps Method

Definition

Returns an operation set identifying this channel's supported operations.

[Android.Runtime.Register("validOps", "()I", "")]
public override sealed Java.Nio.Channels.Operations ValidOps ();
[<Android.Runtime.Register("validOps", "()I", "")>]
override this.ValidOps : unit -> Java.Nio.Channels.Operations

Returns

The valid-operation set

Attributes

Remarks

Returns an operation set identifying this channel's supported operations.

Socket channels support connecting, reading, and writing, so this method returns (SelectionKey#OP_CONNECT|&nbsp;SelectionKey#OP_READ|&nbsp;SelectionKey#OP_WRITE).

Java documentation for java.nio.channels.SocketChannel.validOps().

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

See also