Udostępnij za pośrednictwem


SocketChannel.ShutdownInput Method

Definition

Shutdown the connection for reading without closing the channel.

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

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.

Added in 1.7.

Java documentation for java.nio.channels.SocketChannel.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