AsynchronousSocketChannel.ShutdownInput Method

Definition

Shutdown the connection for reading without closing the channel.

[Android.Runtime.Register("shutdownInput", "()Ljava/nio/channels/AsynchronousSocketChannel;", "GetShutdownInputHandler", ApiSince=26)]
public abstract Java.Nio.Channels.AsynchronousSocketChannel? ShutdownInput ();
[<Android.Runtime.Register("shutdownInput", "()Ljava/nio/channels/AsynchronousSocketChannel;", "GetShutdownInputHandler", ApiSince=26)>]
abstract member ShutdownInput : unit -> Java.Nio.Channels.AsynchronousSocketChannel

Returns

The channel

Attributes

Remarks

Shutdown the connection for reading without closing the channel.

Once shutdown for reading then further reads on the channel will return -1, the end-of-stream indication. If the input side of the connection is already shutdown then invoking this method has no effect. The effect on an outstanding read operation is system dependent and therefore not specified. The effect, if any, when there is data in the socket receive buffer that has not been read, or data arrives subsequently, is also system dependent.

Java documentation for java.nio.channels.AsynchronousSocketChannel.shutdownInput().

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