Udostępnij za pośrednictwem


SocketChannel.ShutdownOutput Method

Definition

Shutdown the connection for writing without closing the channel.

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

Returns

The channel

Attributes

Remarks

Shutdown the connection for writing without closing the channel.

Once shutdown for writing then further attempts to write to the channel will throw ClosedChannelException. If the output 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.shutdownOutput().

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